aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/traps.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/kernel/traps.c')
-rw-r--r--arch/mips/kernel/traps.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c
index 5c8a49d55054..33945aaa9b1b 100644
--- a/arch/mips/kernel/traps.c
+++ b/arch/mips/kernel/traps.c
@@ -1339,9 +1339,18 @@ void ejtag_exception_handler(struct pt_regs *regs)
1339 1339
1340/* 1340/*
1341 * NMI exception handler. 1341 * NMI exception handler.
1342 * No lock; only written during early bootup by CPU 0.
1342 */ 1343 */
1344static RAW_NOTIFIER_HEAD(nmi_chain);
1345
1346int register_nmi_notifier(struct notifier_block *nb)
1347{
1348 return raw_notifier_chain_register(&nmi_chain, nb);
1349}
1350
1343NORET_TYPE void ATTRIB_NORET nmi_exception_handler(struct pt_regs *regs) 1351NORET_TYPE void ATTRIB_NORET nmi_exception_handler(struct pt_regs *regs)
1344{ 1352{
1353 raw_notifier_call_chain(&nmi_chain, 0, regs);
1345 bust_spinlocks(1); 1354 bust_spinlocks(1);
1346 printk("NMI taken!!!!\n"); 1355 printk("NMI taken!!!!\n");
1347 die("NMI", regs); 1356 die("NMI", regs);