From owner-cvs-all Sat Nov 9 14:11:16 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3EE1C37B401; Sat, 9 Nov 2002 14:11:15 -0800 (PST) Received: from canning.wemm.org (canning.wemm.org [192.203.228.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 039B443E3B; Sat, 9 Nov 2002 14:11:06 -0800 (PST) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by canning.wemm.org (Postfix) with ESMTP id 899BE2A88D; Sat, 9 Nov 2002 14:11:02 -0800 (PST) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Alexander Langer Cc: John Baldwin , cvs-all@FreeBSD.ORG, cvs-committers@FreeBSD.ORG Subject: Re: [src] cvs commit: src/sys/conf NOTES src/sys/i386/conf NOTES src/sys/modules Makefile In-Reply-To: <20021107111541.GN48049@fump.kawo2.rwth-aachen.de> Date: Sat, 09 Nov 2002 14:11:02 -0800 From: Peter Wemm Message-Id: <20021109221102.899BE2A88D@canning.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 Alexander Langer wrote: > Thus spake John Baldwin (jhb@FreeBSD.ORG): > > > ed(4) uses kvtop() and is thus i386-only. It has several other warnings > > related to sizeof(int) != sizeof(void *), but kvtop() is much harder to > > fix. > > I once had a patch to replace those kvtop() with equivalent calls > to pmap_kextract() from within the driver. Please do not directly use pmap_kextract() in MI code. The assumption that a PTE is also a physical address is a bad one. vtophys() is universally available on all platforms and mostly does the same thing (although probably with a different set of quirks). 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