summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/include
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2013-09-09 12:44:48 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2013-09-09 12:44:48 +0000
commitedb58d082bda05cc6e61498cf95a019950886aa1 (patch)
tree97d5dd0e48f6350bbae12959fed5a37824d65294 /sys/powerpc/include
parentea72ce4e68ff79a2be0f5950aecfbbf809fd6afa (diff)
downloadFreeBSD-src-edb58d082bda05cc6e61498cf95a019950886aa1.zip
FreeBSD-src-edb58d082bda05cc6e61498cf95a019950886aa1.tar.gz
Use the canonical bits for wired, etc. in the PTE. This is important for
interactions with certain kinds of hypervisors that look into the PTEs more closely than they should. Approved by: re (kib)
Diffstat (limited to 'sys/powerpc/include')
-rw-r--r--sys/powerpc/include/pte.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/powerpc/include/pte.h b/sys/powerpc/include/pte.h
index b5d2ecf..85f169c 100644
--- a/sys/powerpc/include/pte.h
+++ b/sys/powerpc/include/pte.h
@@ -96,8 +96,9 @@ struct lpteg {
#define LPTE_VSID_SHIFT 12
#define LPTE_AVPN_MASK 0xFFFFFFFFFFFFFF80ULL
#define LPTE_API 0x0000000000000F80ULL
-#define LPTE_LOCKED 0x0000000000000040ULL
-#define LPTE_WIRED 0x0000000000000008ULL
+#define LPTE_SWBITS 0x0000000000000078ULL
+#define LPTE_WIRED 0x0000000000000010ULL
+#define LPTE_LOCKED 0x0000000000000008ULL
#define LPTE_BIG 0x0000000000000004ULL /* 4kb/16Mb page */
#define LPTE_HID 0x0000000000000002ULL
#define LPTE_VALID 0x0000000000000001ULL
OpenPOWER on IntegriCloud