]> xenbits.xensource.com Git - people/liuw/xtf.git/commitdiff
Introduce _PAGE_* constants for all pagetable entry bits
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 31 May 2016 17:20:39 +0000 (17:20 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 31 May 2016 17:20:39 +0000 (18:20 +0100)
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
include/arch/x86/page.h

index f472cf671a7f371afba7c3477ab3a6cbab2c94a7..c363761f58d59b1e5c4c0eb9bbb7daf5bba8e0b4 100644 (file)
 #define PAGE_ORDER_2M           9
 #define PAGE_ORDER_1G           18
 
-#define _PAGE_PRESENT           0x001
-#define _PAGE_RW                0x002
-#define _PAGE_USER              0x004
-#define _PAGE_ACCESSED          0x020
-#define _PAGE_DIRTY             0x040
+#define _PAGE_PRESENT           0x0001
+#define _PAGE_RW                0x0002
+#define _PAGE_USER              0x0004
+#define _PAGE_PWT               0x0008
+#define _PAGE_PCD               0x0010
+#define _PAGE_ACCESSED          0x0020
+#define _PAGE_DIRTY             0x0040
 #define _PAGE_AD                (_PAGE_ACCESSED | _PAGE_DIRTY)
-#define _PAGE_PSE               0x080
+#define _PAGE_PSE               0x0080
+#define _PAGE_PAT               0x0080
+#define _PAGE_GLOBAL            0x0100
+#define _PAGE_AVAIL             0x0e00
+#define _PAGE_PSE_PAT           0x1000
+#define _PAGE_NX                (_AC(1, ULL) << 63)
 
 #if CONFIG_PAGING_LEVELS == 2 /* PSE Paging */