aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/traps.c
diff options
context:
space:
mode:
authorKevin Cernekee <cernekee@gmail.com>2011-11-15 20:25:45 -0500
committerRalf Baechle <ralf@linux-mips.org>2011-12-07 17:03:18 -0500
commit6fb97effee5374ac5b2a0e8666d380e83b5ca1e3 (patch)
tree5a97ac150b3c37580628ab8391f5a8754ad6cc1c /arch/mips/kernel/traps.c
parent34bd92e27becdc2c8b50d200a329da5e9b8174d9 (diff)
MIPS: Add board_ebase_setup()
Some systems need to relocate the MIPS exception vector base during trap initialization. Add a hook to make this possible. Signed-off-by: Kevin Cernekee <cernekee@gmail.com> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/2959/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/traps.c')
-rw-r--r--arch/mips/kernel/traps.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c
index 33945aaa9b1b..c18dfd4428fe 100644
--- a/arch/mips/kernel/traps.c
+++ b/arch/mips/kernel/traps.c
@@ -91,6 +91,7 @@ int (*board_be_handler)(struct pt_regs *regs, int is_fixup);
91void (*board_nmi_handler_setup)(void); 91void (*board_nmi_handler_setup)(void);
92void (*board_ejtag_handler_setup)(void); 92void (*board_ejtag_handler_setup)(void);
93void (*board_bind_eic_interrupt)(int irq, int regset); 93void (*board_bind_eic_interrupt)(int irq, int regset);
94void (*board_ebase_setup)(void);
94 95
95 96
96static void show_raw_backtrace(unsigned long reg29) 97static void show_raw_backtrace(unsigned long reg29)
@@ -1691,6 +1692,8 @@ void __init trap_init(void)
1691 ebase += (read_c0_ebase() & 0x3ffff000); 1692 ebase += (read_c0_ebase() & 0x3ffff000);
1692 } 1693 }
1693 1694
1695 if (board_ebase_setup)
1696 board_ebase_setup();
1694 per_cpu_trap_init(); 1697 per_cpu_trap_init();
1695 1698
1696 /* 1699 /*