Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 09 Nov 2002 14:11:02 -0800
From:      Peter Wemm <peter@wemm.org>
To:        Alexander Langer <alex@big.endian.de>
Cc:        John Baldwin <jhb@FreeBSD.ORG>, 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 
Message-ID:  <20021109221102.899BE2A88D@canning.wemm.org>
In-Reply-To: <20021107111541.GN48049@fump.kawo2.rwth-aachen.de> 

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021109221102.899BE2A88D>