diff options
author | Ingo Molnar <mingo@kernel.org> | 2016-04-29 05:55:04 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-04-29 05:55:04 -0400 |
commit | ffc5fce9a96303c3e16232a6bdf8827af6adb604 (patch) | |
tree | c8c46b2af268d27e07ee7fad8c283fa7d31b1fb7 /arch/x86/mm | |
parent | b2eafe890d4a09bfa63ab31ff018d7d6bb8cfefc (diff) | |
parent | 1bdb8970392a68489b469c3a330a1adb5ef61beb (diff) |
Merge branch 'x86/urgent' into x86/asm, to refresh the tree
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/mm')
-rw-r--r-- | arch/x86/mm/setup_nx.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/x86/mm/setup_nx.c b/arch/x86/mm/setup_nx.c index 8bea84724a7d..f65a33f505b6 100644 --- a/arch/x86/mm/setup_nx.c +++ b/arch/x86/mm/setup_nx.c | |||
@@ -32,8 +32,9 @@ early_param("noexec", noexec_setup); | |||
32 | 32 | ||
33 | void x86_configure_nx(void) | 33 | void x86_configure_nx(void) |
34 | { | 34 | { |
35 | /* If disable_nx is set, clear NX on all new mappings going forward. */ | 35 | if (boot_cpu_has(X86_FEATURE_NX) && !disable_nx) |
36 | if (disable_nx) | 36 | __supported_pte_mask |= _PAGE_NX; |
37 | else | ||
37 | __supported_pte_mask &= ~_PAGE_NX; | 38 | __supported_pte_mask &= ~_PAGE_NX; |
38 | } | 39 | } |
39 | 40 | ||