aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/pgtable.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-01-30 07:32:55 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-30 07:32:55 -0500
commit61f38226def55d972cfd0e789971e952525ff8e5 (patch)
tree55f39356f75a46638d86c28230e9b8ad76c75ef9 /include/asm-x86/pgtable.h
parent925596a017bbd045ff711b778256f459e50a1192 (diff)
x86/pgtable: fix constant sign extension problem
based on: Subject: x86/pgtable: fix constant sign extension problem From: Jeremy Fitzhardinge <jeremy@goop.org> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/asm-x86/pgtable.h')
-rw-r--r--include/asm-x86/pgtable.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/include/asm-x86/pgtable.h b/include/asm-x86/pgtable.h
index 5b858f0285a8..73e2b47c055e 100644
--- a/include/asm-x86/pgtable.h
+++ b/include/asm-x86/pgtable.h
@@ -19,18 +19,18 @@
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#define _PAGE_PRESENT (_AC(1, UL)<<_PAGE_BIT_PRESENT) 22#define _PAGE_PRESENT (_AC(1, L)<<_PAGE_BIT_PRESENT)
23#define _PAGE_RW (_AC(1, UL)<<_PAGE_BIT_RW) 23#define _PAGE_RW (_AC(1, L)<<_PAGE_BIT_RW)
24#define _PAGE_USER (_AC(1, UL)<<_PAGE_BIT_USER) 24#define _PAGE_USER (_AC(1, L)<<_PAGE_BIT_USER)
25#define _PAGE_PWT (_AC(1, UL)<<_PAGE_BIT_PWT) 25#define _PAGE_PWT (_AC(1, L)<<_PAGE_BIT_PWT)
26#define _PAGE_PCD (_AC(1, UL)<<_PAGE_BIT_PCD) 26#define _PAGE_PCD (_AC(1, L)<<_PAGE_BIT_PCD)
27#define _PAGE_ACCESSED (_AC(1, UL)<<_PAGE_BIT_ACCESSED) 27#define _PAGE_ACCESSED (_AC(1, L)<<_PAGE_BIT_ACCESSED)
28#define _PAGE_DIRTY (_AC(1, UL)<<_PAGE_BIT_DIRTY) 28#define _PAGE_DIRTY (_AC(1, L)<<_PAGE_BIT_DIRTY)
29#define _PAGE_PSE (_AC(1, UL)<<_PAGE_BIT_PSE) /* 2MB page */ 29#define _PAGE_PSE (_AC(1, L)<<_PAGE_BIT_PSE) /* 2MB page */
30#define _PAGE_GLOBAL (_AC(1, UL)<<_PAGE_BIT_GLOBAL) /* Global TLB entry */ 30#define _PAGE_GLOBAL (_AC(1, L)<<_PAGE_BIT_GLOBAL) /* Global TLB entry */
31#define _PAGE_UNUSED1 (_AC(1, UL)<<_PAGE_BIT_UNUSED1) 31#define _PAGE_UNUSED1 (_AC(1, L)<<_PAGE_BIT_UNUSED1)
32#define _PAGE_UNUSED2 (_AC(1, UL)<<_PAGE_BIT_UNUSED2) 32#define _PAGE_UNUSED2 (_AC(1, L)<<_PAGE_BIT_UNUSED2)
33#define _PAGE_UNUSED3 (_AC(1, UL)<<_PAGE_BIT_UNUSED3) 33#define _PAGE_UNUSED3 (_AC(1, L)<<_PAGE_BIT_UNUSED3)
34 34
35#if defined(CONFIG_X86_64) || defined(CONFIG_X86_PAE) 35#if defined(CONFIG_X86_64) || defined(CONFIG_X86_PAE)
36#define _PAGE_NX (_AC(1, ULL) << _PAGE_BIT_NX) 36#define _PAGE_NX (_AC(1, ULL) << _PAGE_BIT_NX)