diff options
author | Jeremy Fitzhardinge <jeremy@goop.org> | 2008-01-30 07:32:57 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:32:57 -0500 |
commit | 6fdc05d4794056e0b98901646c4b68c60a01d5eb (patch) | |
tree | a6cfb308becd6fe47c549084b29c3e9db3a07f68 /arch/x86/mm/init_32.c | |
parent | c3bcfb57e1e64b9b2f8b2d90564826637e21c5ea (diff) |
x86: unify pgtable accessors which use
Make users of supported_pte_mask common. This has the side-effect of
introducing the variable for 32-bit non-PAE, but I think its a pretty
small cost to simplify the code.
Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/mm/init_32.c')
-rw-r--r-- | arch/x86/mm/init_32.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/x86/mm/init_32.c b/arch/x86/mm/init_32.c index 29130970c193..04332c09ad1d 100644 --- a/arch/x86/mm/init_32.c +++ b/arch/x86/mm/init_32.c | |||
@@ -478,11 +478,12 @@ void zap_low_mappings (void) | |||
478 | 478 | ||
479 | int nx_enabled = 0; | 479 | int nx_enabled = 0; |
480 | 480 | ||
481 | pteval_t __supported_pte_mask __read_mostly = ~_PAGE_NX; | ||
482 | EXPORT_SYMBOL_GPL(__supported_pte_mask); | ||
483 | |||
481 | #ifdef CONFIG_X86_PAE | 484 | #ifdef CONFIG_X86_PAE |
482 | 485 | ||
483 | static int disable_nx __initdata = 0; | 486 | static int disable_nx __initdata = 0; |
484 | u64 __supported_pte_mask __read_mostly = ~_PAGE_NX; | ||
485 | EXPORT_SYMBOL_GPL(__supported_pte_mask); | ||
486 | 487 | ||
487 | /* | 488 | /* |
488 | * noexec = on|off | 489 | * noexec = on|off |