aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAndi Kleen <ak@suse.de>2008-01-30 07:33:53 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-30 07:33:53 -0500
commit934d15854d04e8ca2495d8f5698164df990d5d66 (patch)
treeda1e14ba6c88b3862fbd2f8e6a62e6e91622452d /include
parent1e8e23bc469a11fc190a6bace857075d83dc2555 (diff)
x86: remove set_kernel_exec()
The SMP trampoline always runs in real mode, so making it executable in the page tables doesn't make much sense because it executes before page tables are set up. That was the only user of set_kernel_exec(). Remove set_kernel_exec(). Signed-off-by: Andi Kleen <ak@suse.de> Acked-by: Jan Beulich <jbeulich@novell.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/asm-x86/pgtable_32.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/include/asm-x86/pgtable_32.h b/include/asm-x86/pgtable_32.h
index 9381bd37b9b1..72eb06c2bac9 100644
--- a/include/asm-x86/pgtable_32.h
+++ b/include/asm-x86/pgtable_32.h
@@ -184,18 +184,6 @@ static inline void clone_pgd_range(pgd_t *dst, pgd_t *src, int count)
184 */ 184 */
185extern pte_t *lookup_address(unsigned long address, int *level); 185extern pte_t *lookup_address(unsigned long address, int *level);
186 186
187/*
188 * Make a given kernel text page executable/non-executable.
189 * Returns the previous executability setting of that page (which
190 * is used to restore the previous state). Used by the SMP bootup code.
191 * NOTE: this is an __init function for security reasons.
192 */
193#ifdef CONFIG_X86_PAE
194 extern int set_kernel_exec(unsigned long vaddr, int enable);
195#else
196 static inline int set_kernel_exec(unsigned long vaddr, int enable) { return 0;}
197#endif
198
199#if defined(CONFIG_HIGHPTE) 187#if defined(CONFIG_HIGHPTE)
200#define pte_offset_map(dir, address) \ 188#define pte_offset_map(dir, address) \
201 ((pte_t *)kmap_atomic_pte(pmd_page(*(dir)),KM_PTE0) + pte_index(address)) 189 ((pte_t *)kmap_atomic_pte(pmd_page(*(dir)),KM_PTE0) + pte_index(address))