diff options
author | Petri Gynther <pgynther@google.com> | 2015-10-19 20:49:52 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-11-09 09:56:56 +0100 |
commit | 7963b3f127a7486815bc10639630c95c2792b811 (patch) | |
tree | 5a089d866b7e67022b6a8e4eaba91039e33e115e /arch/mips | |
parent | MIPS: CDMM: Add builtin_mips_cdmm_driver() macro (diff) | |
download | linux-7963b3f127a7486815bc10639630c95c2792b811.tar.xz linux-7963b3f127a7486815bc10639630c95c2792b811.zip |
MIPS: add nmi_enter() + nmi_exit() to nmi_exception_handler()
We need to enter NMI context when NMI interrupt fires.
Signed-off-by: Petri Gynther <pgynther@google.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/11323/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/kernel/traps.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c index fdb392b27e81..efcedd43780f 100644 --- a/arch/mips/kernel/traps.c +++ b/arch/mips/kernel/traps.c @@ -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 */ |