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-2level.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-2level.h')
-rw-r--r-- | include/asm-x86/pgtable-2level.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/include/asm-x86/pgtable-2level.h b/include/asm-x86/pgtable-2level.h index ce486bdbbbb7..701404fab308 100644 --- a/include/asm-x86/pgtable-2level.h +++ b/include/asm-x86/pgtable-2level.h | |||
@@ -56,14 +56,6 @@ static inline pte_t native_ptep_get_and_clear(pte_t *xp) | |||
56 | #define pte_pfn(x) (pte_val(x) >> PAGE_SHIFT) | 56 | #define pte_pfn(x) (pte_val(x) >> PAGE_SHIFT) |
57 | 57 | ||
58 | /* | 58 | /* |
59 | * All present pages are kernel-executable: | ||
60 | */ | ||
61 | static inline int pte_exec_kernel(pte_t pte) | ||
62 | { | ||
63 | return 1; | ||
64 | } | ||
65 | |||
66 | /* | ||
67 | * Bits 0, 6 and 7 are taken, split up the 29 bits of offset | 59 | * Bits 0, 6 and 7 are taken, split up the 29 bits of offset |
68 | * into this range: | 60 | * into this range: |
69 | */ | 61 | */ |