aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/asm-x86/pgtable.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-x86/pgtable.h b/include/asm-x86/pgtable.h
index a1eeacdf9d8c..75a656e6b3f8 100644
--- a/include/asm-x86/pgtable.h
+++ b/include/asm-x86/pgtable.h
@@ -19,6 +19,11 @@
19#define _PAGE_BIT_UNUSED3 11 19#define _PAGE_BIT_UNUSED3 11
20#define _PAGE_BIT_NX 63 /* No execute: only valid after cpuid check */ 20#define _PAGE_BIT_NX 63 /* No execute: only valid after cpuid check */
21 21
22/*
23 * Note: we use _AC(1, L) instead of _AC(1, UL) so that we get a
24 * sign-extended value on 32-bit with all 1's in the upper word,
25 * which preserves the upper pte values on 64-bit ptes:
26 */
22#define _PAGE_PRESENT (_AC(1, L)<<_PAGE_BIT_PRESENT) 27#define _PAGE_PRESENT (_AC(1, L)<<_PAGE_BIT_PRESENT)
23#define _PAGE_RW (_AC(1, L)<<_PAGE_BIT_RW) 28#define _PAGE_RW (_AC(1, L)<<_PAGE_BIT_RW)
24#define _PAGE_USER (_AC(1, L)<<_PAGE_BIT_USER) 29#define _PAGE_USER (_AC(1, L)<<_PAGE_BIT_USER)