diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:32:57 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:32:57 -0500 |
commit | b7fff536d0ad45c4810f9b99845c707ceadc3afc (patch) | |
tree | 3497079d8058edf9b30a01451735e1ef9462ade7 /include/asm-x86/page.h | |
parent | 38472311679d8784c2934d071ddda23d9b3fe264 (diff) |
x86: fix pte_modify() bug
fix sign extension bug in PTE_MASK / _PTE_CHG_MASK.
this resolves the following bootup crash on PAE systems:
[ 94.710726] init[1]: segfault at 00000004 ip 49471cbb sp bff0c6c0 error 4
[ 94.717764] init[1]: segfault at 00000004 ip 49471cbb sp bff0c6c0 error 4
[ 94.724772] init[1]: segfault at 00000004 ip 49471cbb sp bff0c6c0 error 4
[ 94.731777] init[1]: segfault at 00000004 ip 49471cbb sp bff0c6c0 error 4
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/asm-x86/page.h')
-rw-r--r-- | include/asm-x86/page.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-x86/page.h b/include/asm-x86/page.h index 3a00d0d9dfd3..91920565a575 100644 --- a/include/asm-x86/page.h +++ b/include/asm-x86/page.h | |||
@@ -11,7 +11,7 @@ | |||
11 | #ifdef __KERNEL__ | 11 | #ifdef __KERNEL__ |
12 | 12 | ||
13 | #define PHYSICAL_PAGE_MASK (PAGE_MASK & __PHYSICAL_MASK) | 13 | #define PHYSICAL_PAGE_MASK (PAGE_MASK & __PHYSICAL_MASK) |
14 | #define PTE_MASK PHYSICAL_PAGE_MASK | 14 | #define PTE_MASK (_AT(long, PHYSICAL_PAGE_MASK)) |
15 | 15 | ||
16 | #define LARGE_PAGE_SIZE (_AC(1,UL) << PMD_SHIFT) | 16 | #define LARGE_PAGE_SIZE (_AC(1,UL) << PMD_SHIFT) |
17 | #define LARGE_PAGE_MASK (~(LARGE_PAGE_SIZE-1)) | 17 | #define LARGE_PAGE_MASK (~(LARGE_PAGE_SIZE-1)) |