Date: 12 Mar 2002 18:44:21 +0100 From: Dag-Erling Smorgrav <des@ofug.org> To: Jake Burkholder <jake@locore.ca> Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sbin/savecore savecore.c Message-ID: <xzpadtdy93e.fsf@flood.ping.uio.no> In-Reply-To: <20020312121957.P20687@locore.ca> References: <200203111123.g2BBNo651853@freefall.freebsd.org> <20020311175817.I20687@locore.ca> <xzpn0xeuhix.fsf@flood.ping.uio.no> <20020312120759.O20687@locore.ca> <xzpr8mpyauy.fsf@flood.ping.uio.no> <20020312121957.P20687@locore.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
Jake Burkholder <jake@locore.ca> writes: > > > 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. > > I was told that it did work, but I'll take your word that it doesn't. > > The question is, what *does* work? > I don't know yet and its going to be hard. This is why I just left > savecore for now. But - waitasec. Subtracting kernbase from a virtual address doesn't give you a physical address on i386 either - it gives you an offset into the KVA, regardless how it's mapped onto physical memory. Are you saying that kernel memory on the i386 starts at physical address 0 and is mapped linearly upward from there? Looking at the equivalent code for Alpha, it would seem that on Alpha the kernel is also mapped linearly, starting at 0x300000 - is that correct? And how, in brief terms, is kernel memory mapped on Sparc64? DES -- Dag-Erling Smorgrav - des@ofug.org 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?xzpadtdy93e.fsf>