From: "Jan Beulich" <jbeulich@novell.com>
Constrain __supported_pte_mask and NX handling to just the PAE kernel.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Andi Kleen <ak@suse.de>
arch/i386/mm/init.c | 7 ++++---
include/asm-i386/page.h | 1 -
2 files changed, 4 insertions(+), 4 deletions(-)
Index: linux/arch/i386/mm/init.c
===================================================================
--- linux.orig/arch/i386/mm/init.c
+++ linux/arch/i386/mm/init.c
@@ -471,6 +471,10 @@ void zap_low_mappings (void)
flush_tlb_all();
}
+int nx_enabled = 0;
+
+#ifdef CONFIG_X86_PAE
+
static int disable_nx __initdata = 0;
u64 __supported_pte_mask __read_mostly = ~_PAGE_NX;
EXPORT_SYMBOL_GPL(__supported_pte_mask);
@@ -500,9 +504,6 @@ static int __init noexec_setup(char *str
}
early_param("noexec", noexec_setup);
-int nx_enabled = 0;
-#ifdef CONFIG_X86_PAE
-
static void __init set_nx(void)
{
unsigned int v[4], l, h;
Index: linux/include/asm-i386/page.h
===================================================================
--- linux.orig/include/asm-i386/page.h
+++ linux/include/asm-i386/page.h
@@ -44,7 +44,6 @@
extern int nx_enabled;
#ifdef CONFIG_X86_PAE
-extern unsigned long long __supported_pte_mask;
typedef struct { unsigned long pte_low, pte_high; } pte_t;
typedef struct { unsigned long long pmd; } pmd_t;
typedef struct { unsigned long long pgd; } pgd_t;
-
| Renato S. Yamane | Error -71 on device descriptor read/all |
| Stoyan Gaydarov | From 2.4 to 2.6 to 2.7? |
| Rafael J. Wysocki | 2.6.27-rc4-git1: Reported regressions from 2.6.26 |
| Adrian Bunk | Re: 463 kernel developers missing! |
git: | |
| Mike Hommey | Re: Minor annoyance with git push |
| Ken Pratt | pack operation is thrashing my server |
| Elijah Newren | Trying to use git-filter-branch to compress history by removing large, obsolete bi... |
| Wink Saville | Resolving conflicts |
| Daniel Andersson | Re: rtorrent + OpenBSD = freeze |
| Pieter Verberne | File collision while using pkg_add |
| Nick Guenther | Re: Real men don't attack straw men |
| Michael | Virtual interface |
| Jim Winstead Jr. | Re: Root Disk/Book Disk Compatibility |
| Theodore Ts'o | Re: demand paging: proposal |
| Ian Jackson | RESULT: comp.os.linux.announce passes 479:131, others fail |
| Brandon S. Allbery | Re: mkdir says "no space left on device" and more problems... |
