Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

David Daney and committed by
Ralf Baechle
fcbf1dfd 36be5051

+5 -1
+1
arch/mips/include/asm/traps.h
··· 25 25 extern void (*board_ejtag_handler_setup)(void); 26 26 extern void (*board_bind_eic_interrupt)(int irq, int regset); 27 27 extern void (*board_ebase_setup)(void); 28 + extern void (*board_cache_error_setup)(void); 28 29 29 30 extern int register_nmi_notifier(struct notifier_block *nb); 30 31
+4 -1
arch/mips/kernel/traps.c
··· 91 91 void (*board_ejtag_handler_setup)(void); 92 92 void (*board_bind_eic_interrupt)(int irq, int regset); 93 93 void (*board_ebase_setup)(void); 94 - 94 + void __cpuinitdata(*board_cache_error_setup)(void); 95 95 96 96 static void show_raw_backtrace(unsigned long reg29) 97 97 { ··· 1796 1796 set_except_vector(25, handle_mt); 1797 1797 1798 1798 set_except_vector(26, handle_dsp); 1799 + 1800 + if (board_cache_error_setup) 1801 + board_cache_error_setup(); 1799 1802 1800 1803 if (cpu_has_vce) 1801 1804 /* Special exception: R4[04]00 uses also the divec space. */