From owner-cvs-all Tue Mar 12 9: 2:36 2002 Delivered-To: cvs-all@freebsd.org Received: from k6.locore.ca (k6.locore.ca [198.96.117.170]) by hub.freebsd.org (Postfix) with ESMTP id AE8D337B490; Tue, 12 Mar 2002 09:02:25 -0800 (PST) Received: (from jake@localhost) by k6.locore.ca (8.11.6/8.11.6) id g2CH83o43302; Tue, 12 Mar 2002 12:08:03 -0500 (EST) (envelope-from jake) Date: Tue, 12 Mar 2002 12:07:59 -0500 From: Jake Burkholder To: Dag-Erling Smorgrav Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sbin/savecore savecore.c Message-ID: <20020312120759.O20687@locore.ca> References: <200203111123.g2BBNo651853@freefall.freebsd.org> <20020311175817.I20687@locore.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from des@ofug.org on Tue, Mar 12, 2002 at 12:55:50PM +0100 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 Apparently, On Tue, Mar 12, 2002 at 12:55:50PM +0100, Dag-Erling Smorgrav said words to the effect of; > Jake Burkholder 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