diff options
author | David Daney <david.daney@cavium.com> | 2012-05-15 03:04:46 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2012-05-16 17:34:33 -0400 |
commit | fcbf1dfde3da728144222930ae592acb06e92c7c (patch) | |
tree | 3ec036951579d7fc8c13d5579c17cf2d166e057e /arch/mips/kernel | |
parent | 36be50515fe2aef61533b516fa2576a2c7fe7664 (diff) |
MIPS: Introduce board_cache_error_setup() hook.
This is used in subsequent patches.
Signed-off-by: David Daney <david.daney@cavium.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3819/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel')
-rw-r--r-- | arch/mips/kernel/traps.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c index cfdaaa4cffc0..ed46c2b6354c 100644 --- a/arch/mips/kernel/traps.c +++ b/arch/mips/kernel/traps.c | |||
@@ -91,7 +91,7 @@ void (*board_nmi_handler_setup)(void); | |||
91 | void (*board_ejtag_handler_setup)(void); | 91 | void (*board_ejtag_handler_setup)(void); |
92 | void (*board_bind_eic_interrupt)(int irq, int regset); | 92 | void (*board_bind_eic_interrupt)(int irq, int regset); |
93 | void (*board_ebase_setup)(void); | 93 | void (*board_ebase_setup)(void); |
94 | 94 | void __cpuinitdata(*board_cache_error_setup)(void); | |
95 | 95 | ||
96 | static void show_raw_backtrace(unsigned long reg29) | 96 | static void show_raw_backtrace(unsigned long reg29) |
97 | { | 97 | { |
@@ -1797,6 +1797,9 @@ void __init trap_init(void) | |||
1797 | 1797 | ||
1798 | set_except_vector(26, handle_dsp); | 1798 | set_except_vector(26, handle_dsp); |
1799 | 1799 | ||
1800 | if (board_cache_error_setup) | ||
1801 | board_cache_error_setup(); | ||
1802 | |||
1800 | if (cpu_has_vce) | 1803 | if (cpu_has_vce) |
1801 | /* Special exception: R4[04]00 uses also the divec space. */ | 1804 | /* Special exception: R4[04]00 uses also the divec space. */ |
1802 | memcpy((void *)(ebase + 0x180), &except_vec3_r4000, 0x100); | 1805 | memcpy((void *)(ebase + 0x180), &except_vec3_r4000, 0x100); |