diff options
author | Andi Kleen <ak@suse.de> | 2008-01-30 07:33:42 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:33:42 -0500 |
commit | 4c3c4b4513a361cc6ac5ee8677695260c4f0f25f (patch) | |
tree | 3a56ada5131a85fff2bb37841d822d098b92f68c /include/asm-x86/pgtable-3level.h | |
parent | e66a95127dc4273d3573eb03657991f7bbd5dca3 (diff) |
x86: clean up pte_exec
- Rename it to pte_exec() from pte_exec_kernel(). There is nothing
kernel specific in there.
- Move it into the common file because _PAGE_NX is 0 on !PAE and then
pte_exec() will be always evaluate to true.
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/asm-x86/pgtable-3level.h')
-rw-r--r-- | include/asm-x86/pgtable-3level.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/include/asm-x86/pgtable-3level.h b/include/asm-x86/pgtable-3level.h index 62bb06575d5a..62a1ffbc8784 100644 --- a/include/asm-x86/pgtable-3level.h +++ b/include/asm-x86/pgtable-3level.h | |||
@@ -19,14 +19,6 @@ | |||
19 | #define pud_bad(pud) 0 | 19 | #define pud_bad(pud) 0 |
20 | #define pud_present(pud) 1 | 20 | #define pud_present(pud) 1 |
21 | 21 | ||
22 | /* | ||
23 | * All present pages with !NX bit are kernel-executable: | ||
24 | */ | ||
25 | static inline int pte_exec_kernel(pte_t pte) | ||
26 | { | ||
27 | return !(pte_val(pte) & _PAGE_NX); | ||
28 | } | ||
29 | |||
30 | /* Rules for using set_pte: the pte being assigned *must* be | 22 | /* Rules for using set_pte: the pte being assigned *must* be |
31 | * either not present or in a state where the hardware will | 23 | * either not present or in a state where the hardware will |
32 | * not attempt to update the pte. In places where this is | 24 | * not attempt to update the pte. In places where this is |