summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2004-06-08 00:29:42 +0000
committerpeter <peter@FreeBSD.org>2004-06-08 00:29:42 +0000
commit8a41fbc2075568db0ac84b7c65974c27c858362f (patch)
tree4b6d6f8ce143d2f3ce96c976d13be8ce42080542 /sys/amd64/include
parent71abd863dcb3f17269d59f8bbc7af377c4460cd1 (diff)
downloadFreeBSD-src-8a41fbc2075568db0ac84b7c65974c27c858362f.zip
FreeBSD-src-8a41fbc2075568db0ac84b7c65974c27c858362f.tar.gz
Mask pte's with PG_FRAME before passing it to PHYS_TO_VM_PAGE().. PG_NX
lives in the top 12 'available' bits. atop() in the PHYS_TO_VM_PAGE() macro only masks off the lower bits (by accident) and the upper bits in the 64 bit ptes turn into "interesting" index values.
Diffstat (limited to 'sys/amd64/include')
-rw-r--r--sys/amd64/include/pmap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/include/pmap.h b/sys/amd64/include/pmap.h
index 952fa50..746254d 100644
--- a/sys/amd64/include/pmap.h
+++ b/sys/amd64/include/pmap.h
@@ -67,7 +67,7 @@
/* Our various interpretations of the above */
#define PG_W PG_AVAIL1 /* "Wired" pseudoflag */
#define PG_MANAGED PG_AVAIL2
-#define PG_FRAME (~((vm_paddr_t)PAGE_MASK))
+#define PG_FRAME (0x000ffffffffff000ul)
#define PG_PROT (PG_RW|PG_U) /* all protection bits . */
#define PG_N (PG_NC_PWT|PG_NC_PCD) /* Non-cacheable */
OpenPOWER on IntegriCloud