From owner-cvs-all Tue Mar 12 10:54:13 2002 Delivered-To: cvs-all@freebsd.org Received: from rwcrmhc54.attbi.com (rwcrmhc54.attbi.com [216.148.227.87]) by hub.freebsd.org (Postfix) with ESMTP id 1A74E37B4A4; Tue, 12 Mar 2002 10:51:51 -0800 (PST) Received: from peter3.wemm.org ([12.232.27.13]) by rwcrmhc54.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020312185151.ILKN1214.rwcrmhc54.attbi.com@peter3.wemm.org>; Tue, 12 Mar 2002 18:51:51 +0000 Received: from overcee.wemm.org (overcee.wemm.org [10.0.0.3]) by peter3.wemm.org (8.11.0/8.11.0) with ESMTP id g2CIpos32123; Tue, 12 Mar 2002 10:51:50 -0800 (PST) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by overcee.wemm.org (Postfix) with ESMTP id 40FE6380A; Tue, 12 Mar 2002 10:51:50 -0800 (PST) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Dag-Erling Smorgrav Cc: Jake Burkholder , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sbin/savecore savecore.c In-Reply-To: Date: Tue, 12 Mar 2002 10:51:50 -0800 From: Peter Wemm Message-Id: <20020312185150.40FE6380A@overcee.wemm.org> 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 Dag-Erling Smorgrav wrote: > Jake Burkholder 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