Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Mar 2002 12:07:59 -0500
From:      Jake Burkholder <jake@locore.ca>
To:        Dag-Erling Smorgrav <des@ofug.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sbin/savecore savecore.c
Message-ID:  <20020312120759.O20687@locore.ca>
In-Reply-To: <xzpn0xeuhix.fsf@flood.ping.uio.no>; from des@ofug.org on Tue, Mar 12, 2002 at 12:55:50PM %2B0100
References:  <200203111123.g2BBNo651853@freefall.freebsd.org> <20020311175817.I20687@locore.ca> <xzpn0xeuhix.fsf@flood.ping.uio.no>

next in thread | previous in thread | raw e-mail | index | archive | help
Apparently, On Tue, Mar 12, 2002 at 12:55:50PM +0100,
	Dag-Erling Smorgrav said words to the effect of;

> Jake Burkholder <jake@locore.ca> writes:
> > This will build but its actually wrong.  We can't make the same assumptions
> > about the physical address of where the kernel is loaded as i386 does.
> 
> Well, I was told it was correct :) This doesn't make any assumptions,
> BTW - it looks for the kernbase symbol in the kernel and uses that.

Yes, but why.  It assumes that subtracting kernbase from a virtual
address will give on offset into the core dump, ie a phsyical address.
This doesn't work on sparc64.

> Now if you're telling me that the kernel's own idea of kernbase is
> wrong...

It isn't.  kernbase is the lowest kernel virtual address, it may not
have anything to do with physical addresses.

Jake

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?20020312120759.O20687>