patch-2.4.22 linux-2.4.22/arch/mips/ddb5xxx/ddb5477/irq.c
Next file: linux-2.4.22/arch/mips/ddb5xxx/ddb5477/pci.c
Previous file: linux-2.4.22/arch/mips/ddb5xxx/ddb5477/int-handler.S
Back to the patch index
Back to the overall index
- Lines: 49
- Date:
2003-08-25 04:44:39.000000000 -0700
- Orig file:
linux-2.4.21/arch/mips/ddb5xxx/ddb5477/irq.c
- Orig date:
2002-11-28 15:53:09.000000000 -0800
diff -urN linux-2.4.21/arch/mips/ddb5xxx/ddb5477/irq.c linux-2.4.22/arch/mips/ddb5xxx/ddb5477/irq.c
@@ -13,9 +13,11 @@
#include <linux/config.h>
#include <linux/init.h>
#include <linux/interrupt.h>
+#include <linux/irq.h>
#include <linux/types.h>
#include <linux/ptrace.h>
+#include <asm/i8259.h>
#include <asm/system.h>
#include <asm/mipsregs.h>
#include <asm/debug.h>
@@ -71,7 +73,6 @@
ddb_out32(pci, reg_value);
}
-extern void init_i8259_irqs (void);
extern void vrc5477_irq_init(u32 base);
extern void mips_cpu_irq_init(u32 base);
extern asmlinkage void ddb5477_handle_int(void);
@@ -90,8 +91,8 @@
ddb_out32(DDB_INTCTRL2, 0);
ddb_out32(DDB_INTCTRL3, 0);
- clear_cp0_status(0xff00);
- set_cp0_status(0x0400);
+ clear_c0_status(0xff00);
+ set_c0_status(0x0400);
/* setup PCI interrupt attributes */
set_pci_int_attr(PCI0, INTA, ACTIVE_LOW, LEVEL_SENSE);
@@ -164,8 +165,6 @@
asmlinkage void
vrc5477_irq_dispatch(struct pt_regs *regs)
{
- extern unsigned int do_IRQ(int irq, struct pt_regs *regs);
-
u32 intStatus;
u32 bitmask;
u32 i;
@@ -176,7 +175,7 @@
db_assert(ddb_in32(DDB_NMISTAT) == 0);
if (ddb_in32(DDB_INT1STAT) != 0) {
-#if defined(CONFIG_DEBUG)
+#if defined(CONFIG_RUNTIME_DEBUG)
vrc5477_show_int_regs();
#endif
panic("error interrupt has happened.");
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)