sparc32: remove sun4c traps
PATCH 3/14 sparc32: remove sun4c traps
We used to runtime patch the trap table for srmmu. With the removal of sun4c support this is no longer required.
With the sun4c trap removed we can remove all the referenced trap handling which is sun4c specific.
This also allwos us to get rid of the nosun4c.c file that contained only dummy functions/data.
Signed-off-by Sam Ravnborg <[email protected]>
--- arch/sparc/include/asm/head_32.h | 4 +- arch/sparc/include/asm/memreg.h | 51 -------- arch/sparc/kernel/devices.c | 4 - arch/sparc/kernel/entry.S | 248 -------------------------------------- arch/sparc/kernel/head_32.S | 6 +- arch/sparc/kernel/setup_32.c | 9 -- arch/sparc/mm/Makefile | 2 - arch/sparc/mm/fault_32.c | 89 -------------- arch/sparc/mm/nosun4c.c | 54 -------- arch/sparc/mm/srmmu.c | 5 - 10 files changed, 4 insertions(+), 468 deletions(-) delete mode 100644 arch/sparc/include/asm/memreg.h delete mode 100644 arch/sparc/mm/nosun4c.c
arch/sparc/include/asm/head_32.h +1 -3
@@ -18,9 +18,7 @@#define TRAP_ENTRY (type, label) \ rd %psr, %l0; b label; rd %wim, %l3; nop; -/* Data/text faults. Defaults to sun4c version at boot time. */ -#define SPARC_TFAULT rd %psr, %l0; rd %wim, %l3; b sun4c_fault; mov 1, %l7; -#define SPARC_DFAULT rd %psr, %l0; rd %wim, %l3; b sun4c_fault; mov 0, %l7; +/* Data/text faults */ #define SRMMU_TFAULT rd %psr, %l0; rd %wim, %l3; b srmmu_fault; mov 1, %l7;#define SRMMU_DFAULT rd %psr, %l0; rd %wim, %l3; b srmmu_fault; mov 0, %l7;
arch/sparc/include/asm/memreg.h deleted +0 -51
51 lines not on this page · raw message
arch/sparc/kernel/devices.c +0 -4
@@ -21,7 +21,6 @@#include <asm/cpu_type.h> extern void clock_stop_probe (void );/* tadpole.c */ -extern void sun4c_probe_memerr_reg (void );static char *cpu_mid_prop (void ) {
@@ -139,7 +138,4 @@ void __init device_scan(void)auxio_power_probe (); }clock_stop_probe (); - -if (ARCH_SUN4C ) -sun4c_probe_memerr_reg (); }
arch/sparc/kernel/entry.S +0 -248
260 lines not on this page · raw message
arch/sparc/kernel/head_32.S +3 -3
@@ -84,7 +84,7 @@ trapbase_cpu0: #endif /* We get control passed to us here at t_zero. */ t_zero: b gokernel; nop; nop; nop; -t_tflt: SPARC_TFAULT /* Inst. Access Exception */ +t_tflt: SRMMU_TFAULT /* Inst. Access Exception */ t_bins: TRAP_ENTRY(0x2, bad_instruction) /* Illegal Instruction */ t_pins: TRAP_ENTRY(0x3, priv_instruction) /* Privileged Instruction */ t_fpd: TRAP_ENTRY(0x4, fpd_trap_handler) /* Floating Point Disabled */
@@ -92,7 +92,7 @@ t_wovf: WINDOW_SPILL /* Window Overflow */ t_wunf: WINDOW_FILL /* Window Underflow */ t_mna: TRAP_ENTRY(0x7, mna_handler) /* Memory Address Not Aligned */ t_fpe: TRAP_ENTRY(0x8, fpe_trap_handler) /* Floating Point Exception */ -t_dflt: SPARC_DFAULT /* Data Miss Exception */ +t_dflt: SRMMU_DFAULT /* Data Miss Exception */ t_tio: TRAP_ENTRY(0xa, do_tag_overflow) /* Tagged Instruction Ovrflw */ t_wpt: TRAP_ENTRY(0xb, do_watchpoint) /* Watchpoint Detected */ t_badc: BAD_TRAP(0xc) BAD_TRAP(0xd) BAD_TRAP(0xe) BAD_TRAP(0xf) BAD_TRAP(0x10)
@@ -120,7 +120,7 @@ t_cpdis:TRAP_ENTRY(0x24, do_cp_disabled) /* Co-Processor Disabled */ t_uflsh:SKIP_TRAP(0x25, unimp_flush) /* Unimplemented FLUSH inst. */ t_bad26:BAD_TRAP(0x26) BAD_TRAP(0x27) t_cpexc:TRAP_ENTRY(0x28, do_cp_exception) /* Co-Processor Exception */ -t_dacce:SPARC_DFAULT /* Data Access Error */ +t_dacce:SRMMU_DFAULT /* Data Access Error */ t_hwdz: TRAP_ENTRY(0x2a, do_hw_divzero) /* Division by zero, you lose... */ t_dserr:BAD_TRAP(0x2b) /* Data Store Error */ t_daccm:BAD_TRAP(0x2c) /* Data Access MMU-Miss */
arch/sparc/kernel/setup_32.c +0 -9
@@ -182,13 +182,6 @@ static void __init boot_flags_init(char *commands) } } -/* This routine will in the future do all the nasty prom stuff -* to probe for the mmu type and its parameters, etc. This will -* also be where SMP things happen. -*/ - -extern void sun4c_probe_vac (void ); -extern unsigned short root_flags;extern unsigned short root_dev;extern unsigned short ram_flags;
@@ -275,8 +268,6 @@ void __init setup_arch(char **cmdline_p)#endif idprom_init (); -if (ARCH_SUN4C ) -sun4c_probe_vac ();load_mmu (); phys_base =0xffffffffUL ;
arch/sparc/mm/Makefile +0 -2
@@ -17,5 +17,3 @@ obj-$(CONFIG_HUGETLB_PAGE) += hugetlbpage.o # Only used by sparc32 obj-$(CONFIG_HIGHMEM) += highmem.o - -obj-$(CONFIG_SPARC32) += nosun4c.o
arch/sparc/mm/fault_32.c +0 -89
107 lines not on this page · raw message
arch/sparc/mm/nosun4c.c deleted +0 -54
54 lines not on this page · raw message
arch/sparc/mm/srmmu.c +0 -5
@@ -2134,8 +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; -extern unsigned long srmmu_fault; -#define PATCH_BRANCH (insn, dest) do { \ iaddr = &(insn); \ daddr = &(dest); \
@@ -2150,9 +2148,6 @@ static void __init patch_window_trap_handlers(void)PATCH_BRANCH (fwin_mmu_patchme, srmmu_fwin_stackchk);PATCH_BRANCH (tsetup_mmu_patchme, tsetup_srmmu_stackchk);PATCH_BRANCH (rtrap_mmu_patchme, srmmu_rett_stackchk); -PATCH_BRANCH (sparc_ttable[SP_TRAP_TFLT ].inst_three, srmmu_fault); -PATCH_BRANCH (sparc_ttable[SP_TRAP_DFLT ].inst_three, srmmu_fault); -PATCH_BRANCH (sparc_ttable[SP_TRAP_DACC ].inst_three, srmmu_fault); }#ifdef CONFIG_SMP
Signature · 1 line
1.6.0.6