Date: Tue, 12 Mar 2002 10:51:50 -0800 From: Peter Wemm <peter@wemm.org> To: Dag-Erling Smorgrav <des@ofug.org> Cc: Jake Burkholder <jake@locore.ca>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sbin/savecore savecore.c Message-ID: <20020312185150.40FE6380A@overcee.wemm.org> In-Reply-To: <xzpit81ws67.fsf@flood.ping.uio.no>
next in thread | previous in thread | raw e-mail | index | archive | help
Dag-Erling Smorgrav wrote:
> Jake Burkholder <jake@locore.ca> writes:
> > Are you volunteering?
>
> Might as well, but I don't have hardware to test it, so I'll need
> someone else to test it for me.
>
> ISTR that dumpsys already reserves an extra page or so at the end of
> the dump; this might be a good place to store this data. If not, I'll
> have to modify the format of the dump.
Nope. And to make it worse, the dump routines are in the MI drivers.
dumpsys() does not *do* the dumps, it is the drivers themselves.
The MI dump routines have code like this in them:
vm_offset_t addr = 0;
...
for (i = 0; i < dumppages; ++i) {
vm_offset_t a = addr + (i * PAGE_SIZE);
if (is_physical_memory(a))
va = pmap_kenter_temporary(trunc_page(a), i);
else
va = pmap_kenter_temporary(trunc_page(0), i);
}
(this one taken from ata-disk.c, they are all different)
> How do I obtain the correct start address from within the kernel?
>
> DES
> --
> Dag-Erling Smorgrav - des@ofug.org
>
Cheers,
-Peter
--
Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com
"All of this is for nothing if we don't go to the stars" - JMS/B5
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020312185150.40FE6380A>
