summaryrefslogtreecommitdiff
path: root/sys/arch/i386/include/pte.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/i386/include/pte.h')
-rw-r--r--sys/arch/i386/include/pte.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/arch/i386/include/pte.h b/sys/arch/i386/include/pte.h
index c0e1ccfb83d..aa9b62341d6 100644
--- a/sys/arch/i386/include/pte.h
+++ b/sys/arch/i386/include/pte.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pte.h,v 1.21 2015/04/12 18:37:54 mlarkin Exp $ */
+/* $OpenBSD: pte.h,v 1.22 2016/10/21 06:20:59 mlarkin Exp $ */
/* $NetBSD: pte.h,v 1.11 1998/02/06 21:58:05 thorpej Exp $ */
/*
@@ -67,6 +67,13 @@
#define PG_AVAIL3 0x00000800 /* ignored by hardware */
#define PG_PATLG 0x00001000 /* PAT on large pages */
+/* EPT PTE bits */
+#define EPT_R (1ULL << 0)
+#define EPT_W (1ULL << 1)
+#define EPT_X (1ULL << 2)
+#define EPT_WB (6ULL << 3)
+#define EPT_PS (1ULL << 7)
+
/* Cacheability bits when we are using PAT */
#define PG_WB (0) /* The default */
#define PG_WC (PG_WT) /* WT and CD is WC */