Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 264315
b: refs/heads/master
c: 8742cd2
h: refs/heads/master
i:
  264313: 2b3c90f
  264311: 4aa4f19
v: v3
  • Loading branch information
Nathan Lynch authored and Ralf Baechle committed Oct 1, 2011
1 parent 4bbba71 commit e8387ec
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a4be637b34a543af5b5421a8ee0ee04d30f5f58e
refs/heads/master: 8742cd23471635f8b069bf9a6806200a77397ddb
10 changes: 9 additions & 1 deletion trunk/arch/mips/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <linux/bug.h>
#include <linux/compiler.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/module.h>
#include <linux/sched.h>
Expand Down Expand Up @@ -371,14 +372,19 @@ void __noreturn die(const char *str, struct pt_regs *regs)
static int die_counter;
int sig = SIGSEGV;
#ifdef CONFIG_MIPS_MT_SMTC
unsigned long dvpret = dvpe();
unsigned long dvpret;
#endif /* CONFIG_MIPS_MT_SMTC */

oops_enter();

if (notify_die(DIE_OOPS, str, regs, 0, regs_to_trapnr(regs), SIGSEGV) == NOTIFY_STOP)
sig = 0;

console_verbose();
raw_spin_lock_irq(&die_lock);
#ifdef CONFIG_MIPS_MT_SMTC
dvpret = dvpe();
#endif /* CONFIG_MIPS_MT_SMTC */
bust_spinlocks(1);
#ifdef CONFIG_MIPS_MT_SMTC
mips_mt_regdump(dvpret);
Expand All @@ -389,6 +395,8 @@ void __noreturn die(const char *str, struct pt_regs *regs)
add_taint(TAINT_DIE);
raw_spin_unlock_irq(&die_lock);

oops_exit();

if (in_interrupt())
panic("Fatal exception in interrupt");

Expand Down

0 comments on commit e8387ec

Please sign in to comment.