summaryrefslogtreecommitdiffstats
path: root/arch/parisc/kernel
diff options
context:
space:
mode:
authorSven Schnelle <svens@stackframe.org>2019-08-01 22:08:42 +0200
committerHelge Deller <deller@gmx.de>2019-08-03 08:56:57 +0200
commitec4d396b635070e0caf5888d58cb9eedc8dd73d9 (patch)
tree80dd3e68f9fc514506ad82c169f85832563a7bdb /arch/parisc/kernel
parentc8bbbc67cb314981e7ba22af0bd703225f0add80 (diff)
downloadlinux-ec4d396b635070e0caf5888d58cb9eedc8dd73d9.tar.bz2
parisc: trigger die notifier chain in parisc_terminate()
This will trigger kgdb/kdb when they are enabled. Signed-off-by: Sven Schnelle <svens@stackframe.org> Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'arch/parisc/kernel')
-rw-r--r--arch/parisc/kernel/traps.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/parisc/kernel/traps.c b/arch/parisc/kernel/traps.c
index 58dcf445e32f..82fc01189488 100644
--- a/arch/parisc/kernel/traps.c
+++ b/arch/parisc/kernel/traps.c
@@ -29,6 +29,7 @@
#include <linux/bug.h>
#include <linux/ratelimit.h>
#include <linux/uaccess.h>
+#include <linux/kdebug.h>
#include <asm/assembly.h>
#include <asm/io.h>
@@ -414,6 +415,7 @@ void parisc_terminate(char *msg, struct pt_regs *regs, int code, unsigned long o
{
static DEFINE_SPINLOCK(terminate_lock);
+ (void)notify_die(DIE_OOPS, msg, regs, 0, code, SIGTRAP);
bust_spinlocks(1);
set_eiem(0);