sparc32: drop sun4c user stack checking routine
PATCH 10/14 sparc32: drop sun4c user stack checking routine
With this we no longer do any run-time patchings of traps. So drop the function + macro to support this.
Signed-off-by Sam Ravnborg <[email protected]>
--- arch/sparc/include/asm/traps.h | 7 ---- arch/sparc/kernel/rtrap_32.S | 76 +++------------------------------------ arch/sparc/mm/srmmu.c | 14 ------- 3 files changed, 6 insertions(+), 91 deletions(-)
arch/sparc/include/asm/traps.h +0 -7
@@ -31,13 +31,6 @@ extern struct tt_entry *sparc_ttable;#define SPARC_MOV_CONST_L3 (const) (0xa6102000 | (const&0xfff)) -/* The following assumes that the branch lies before the place we -* are branching to. This is the case for a trap vector... -* You have been warned. -*/ -#define SPARC_BRANCH (dest_addr, inst_addr) \ - (0x10800000 | (((dest_addr-inst_addr)>>2)&0x3fffff)) -#define SPARC_RD_PSR_L0 (0xa1480000)#define SPARC_RD_WIM_L3 (0xa7500000)#define SPARC_NOP (0x01000000)
arch/sparc/kernel/rtrap_32.S +6 -70
88 lines not on this page · raw message
arch/sparc/mm/srmmu.c +0 -14
@@ -2134,19 +2134,6 @@ extern unsigned long spwin_mmu_patchme, fwin_mmu_patchme,extern unsigned long spwin_srmmu_stackchk, srmmu_fwin_stackchk, tsetup_srmmu_stackchk, srmmu_rett_stackchk; -#define PATCH_BRANCH (insn, dest) do { \ - iaddr = &(insn); \ - daddr = &(dest); \ - *iaddr = SPARC_BRANCH((unsigned long) daddr, (unsigned long) iaddr); \ - } while(0) - -static void __init patch_window_trap_handlers (void ) -{ -unsigned long *iaddr, *daddr; - -PATCH_BRANCH (rtrap_mmu_patchme, srmmu_rett_stackchk); -} -#ifdef CONFIG_SMP /* Local cross-calls. */ static void smp_flush_page_for_dma (unsigned long page)
@@ -2270,7 +2257,6 @@ void __init ld_mmu_srmmu(void)BTFIXUPSET_CALL (pgoff_to_pte, srmmu_pgoff_to_pte,BTFIXUPCALL_NORM );get_srmmu_type (); -patch_window_trap_handlers ();#ifdef CONFIG_SMP /* El switcheroo... */
Signature · 1 line
1.6.0.6