[MIPS] Malta: Fix uninitialized regs pointer.
authorRalf Baechle <ralf@linux-mips.org>
Sun, 15 Oct 2006 08:17:43 +0000 (09:17 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 19 Oct 2006 16:55:12 +0000 (17:55 +0100)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/mips-boards/malta/malta_int.c

index 6244d0e2c7de371a4d48d95a04fe39f0d5b53e6b..90ad5bf3e2f175c8dd3c5ab055860ae988c3fdb2 100644 (file)
@@ -32,6 +32,7 @@
 #include <asm/i8259.h>
 #include <asm/irq_cpu.h>
 #include <asm/io.h>
+#include <asm/irq_regs.h>
 #include <asm/mips-boards/malta.h>
 #include <asm/mips-boards/maltaint.h>
 #include <asm/mips-boards/piix4.h>
@@ -131,7 +132,7 @@ static void corehi_irqdispatch(void)
        unsigned int intedge, intsteer, pcicmd, pcibadaddr;
         unsigned int pcimstat, intisr, inten, intpol;
        unsigned int intrcause,datalo,datahi;
-       struct pt_regs *regs;
+       struct pt_regs *regs = get_irq_regs();
 
         printk("CoreHI interrupt, shouldn't happen, so we die here!!!\n");
         printk("epc   : %08lx\nStatus: %08lx\n"