Skip to content

Commit

Permalink
parisc: trigger die notifier chain in parisc_terminate()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sven Schnelle authored and Helge Deller committed Aug 3, 2019
1 parent c8bbbc6 commit ec4d396
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/parisc/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit ec4d396

Please sign in to comment.