]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[MIPS] Fix do_default_vi to use get_irq_regs to get the irq register ptr.
authorRalf Baechle <ralf@linux-mips.org>
Sun, 6 May 2007 16:51:59 +0000 (17:51 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 11 May 2007 13:28:30 +0000 (14:28 +0100)
Harmless bug because this function is only called in case of another
kernel bug anyway which is also why this was missed for so long.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/traps.c

index 6c41224bae68402df430b4ab7d9437c6713e8a08..b511ed3091c5fd61a42d0791c480dd529977a7a0 100644 (file)
@@ -927,9 +927,9 @@ asmlinkage void do_reserved(struct pt_regs *regs)
              (regs->cp0_cause & 0x7f) >> 2);
 }
 
-static asmlinkage void do_default_vi(struct pt_regs *regs)
+static asmlinkage void do_default_vi(void)
 {
-       show_regs(regs);
+       show_regs(get_irq_regs());
        panic("Caught unexpected vectored interrupt.");
 }