Commit 7963b3f1 authored by Petri Gynther's avatar Petri Gynther Committed by Ralf Baechle

MIPS: add nmi_enter() + nmi_exit() to nmi_exception_handler()

We need to enter NMI context when NMI interrupt fires.
Signed-off-by: default avatarPetri Gynther <pgynther@google.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/11323/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 1b4a5ddb
......@@ -1856,12 +1856,14 @@ void __noreturn nmi_exception_handler(struct pt_regs *regs)
{
char str[100];
nmi_enter();
raw_notifier_call_chain(&nmi_chain, 0, regs);
bust_spinlocks(1);
snprintf(str, 100, "CPU%d NMI taken, CP0_EPC=%lx\n",
smp_processor_id(), regs->cp0_epc);
regs->cp0_epc = read_c0_errorepc();
die(str, regs);
nmi_exit();
}
#define VECTORSPACING 0x100 /* for EI/VI mode */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment