Date: Wed, 14 Jul 2004 01:01:31 GMT From: Peter Wemm <peter@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 57308 for review Message-ID: <200407140101.i6E11V86083930@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=57308 Change 57308 by peter@peter_melody on 2004/07/14 01:01:11 Fix vtopde(). Use PAGE_SHIFT/PDRSHIFT for clarity so that they can be compared to the pte_index/pde_index routines above. Affected files ... .. //depot/projects/hammer/sys/amd64/amd64/pmap.c#91 edit Differences ... ==== //depot/projects/hammer/sys/amd64/amd64/pmap.c#91 (text+ko) ==== @@ -356,7 +356,7 @@ { u_int64_t mask = ((1ul << (NPTEPGSHIFT + NPDEPGSHIFT + NPDPEPGSHIFT + NPML4EPGSHIFT)) - 1); - return (PTmap + (amd64_btop(va) & mask)); + return (PTmap + ((va >> PAGE_SHIFT) & mask)); } static __inline pd_entry_t * @@ -364,7 +364,7 @@ { u_int64_t mask = ((1ul << (NPDEPGSHIFT + NPDPEPGSHIFT + NPML4EPGSHIFT)) - 1); - return (PTmap + (amd64_btop(va) & mask)); + return (PDmap + ((va >> PDRSHIFT) & mask)); } static u_int64_t
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407140101.i6E11V86083930>