From 1393ee6af25372a0e869e44a5958d3b18ae25a7c Mon Sep 17 00:00:00 2001 From: Andrew Cooper Date: Tue, 31 May 2016 17:20:39 +0000 Subject: [PATCH] Introduce _PAGE_* constants for all pagetable entry bits Signed-off-by: Andrew Cooper --- include/arch/x86/page.h | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/include/arch/x86/page.h b/include/arch/x86/page.h index f472cf6..c363761 100644 --- a/include/arch/x86/page.h +++ b/include/arch/x86/page.h @@ -18,13 +18,20 @@ #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 */ -- 2.39.5