From owner-cvs-all Tue Mar 12 9:44:31 2002 Delivered-To: cvs-all@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id DE98537B402; Tue, 12 Mar 2002 09:44:23 -0800 (PST) Received: by flood.ping.uio.no (Postfix, from userid 2602) id 64B645346; Tue, 12 Mar 2002 18:44:22 +0100 (CET) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Jake Burkholder Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sbin/savecore savecore.c References: <200203111123.g2BBNo651853@freefall.freebsd.org> <20020311175817.I20687@locore.ca> <20020312120759.O20687@locore.ca> <20020312121957.P20687@locore.ca> From: Dag-Erling Smorgrav Date: 12 Mar 2002 18:44:21 +0100 In-Reply-To: <20020312121957.P20687@locore.ca> Message-ID: Lines: 24 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Jake Burkholder 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