aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel
diff options
context:
space:
mode:
authorThiemo Seufer <ths@networkno.de>2007-08-20 18:43:49 -0400
committerRalf Baechle <ralf@linux-mips.org>2007-08-26 21:16:59 -0400
commit34412c7231f513283ab501eea41774b4ae623dcc (patch)
tree24b4d974ac0c78ac23c46fd79399cfbb819e9209 /arch/mips/kernel
parent97ce9a8d6c9b50ea38f45d05a73fded2e0701ddf (diff)
[MIPS] SMTC: Fix duplicate status dumps on NMI
Also removes the while(1); loop by propagating the ATTRIB_NORET of die() to nmi_exception_handler. Signed-off-by: Thiemo Seufer <ths@networkno.de> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel')
-rw-r--r--arch/mips/kernel/traps.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c
index c8e291c83057..d6103e510899 100644
--- a/arch/mips/kernel/traps.c
+++ b/arch/mips/kernel/traps.c
@@ -1035,19 +1035,11 @@ void ejtag_exception_handler(struct pt_regs *regs)
1035/* 1035/*
1036 * NMI exception handler. 1036 * NMI exception handler.
1037 */ 1037 */
1038void nmi_exception_handler(struct pt_regs *regs) 1038NORET_TYPE void ATTRIB_NORET nmi_exception_handler(struct pt_regs *regs)
1039{ 1039{
1040#ifdef CONFIG_MIPS_MT_SMTC
1041 unsigned long dvpret = dvpe();
1042 bust_spinlocks(1); 1040 bust_spinlocks(1);
1043 printk("NMI taken!!!!\n"); 1041 printk("NMI taken!!!!\n");
1044 mips_mt_regdump(dvpret);
1045#else
1046 bust_spinlocks(1);
1047 printk("NMI taken!!!!\n");
1048#endif /* CONFIG_MIPS_MT_SMTC */
1049 die("NMI", regs); 1042 die("NMI", regs);
1050 while(1) ;
1051} 1043}
1052 1044
1053#define VECTORSPACING 0x100 /* for EI/VI mode */ 1045#define VECTORSPACING 0x100 /* for EI/VI mode */