mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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 <[email protected]> Acked-by: Jan Beulich <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
This commit is contained in:
parent
1e8e23bc46
commit
934d15854d
3 changed files with 0 additions and 52 deletions
|
|
@ -184,18 +184,6 @@ static inline void clone_pgd_range(pgd_t *dst, pgd_t *src, int count)
|
|||
*/
|
||||
extern pte_t *lookup_address(unsigned long address, int *level);
|
||||
|
||||
/*
|
||||
* Make a given kernel text page executable/non-executable.
|
||||
* Returns the previous executability setting of that page (which
|
||||
* is used to restore the previous state). Used by the SMP bootup code.
|
||||
* NOTE: this is an __init function for security reasons.
|
||||
*/
|
||||
#ifdef CONFIG_X86_PAE
|
||||
extern int set_kernel_exec(unsigned long vaddr, int enable);
|
||||
#else
|
||||
static inline int set_kernel_exec(unsigned long vaddr, int enable) { return 0;}
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_HIGHPTE)
|
||||
#define pte_offset_map(dir, address) \
|
||||
((pte_t *)kmap_atomic_pte(pmd_page(*(dir)),KM_PTE0) + pte_index(address))
|
||||
|
|
|
|||
Loading…
Reference in a new issue