patch-2.4.19 linux-2.4.19/arch/mips/ddb5xxx/ddb5477/irq.c
Next file: linux-2.4.19/arch/mips/ddb5xxx/ddb5477/irq_5477.c
Previous file: linux-2.4.19/arch/mips/ddb5xxx/ddb5477/debug.c
Back to the patch index
Back to the overall index
- Lines: 52
- Date:
Fri Aug 2 17:39:43 2002
- Orig file:
linux-2.4.18/arch/mips/ddb5xxx/ddb5477/irq.c
- Orig date:
Sun Sep 9 10:43:01 2001
diff -urN linux-2.4.18/arch/mips/ddb5xxx/ddb5477/irq.c linux-2.4.19/arch/mips/ddb5xxx/ddb5477/irq.c
@@ -12,16 +12,16 @@
*/
#include <linux/config.h>
#include <linux/init.h>
-#include <linux/irq.h>
+#include <linux/interrupt.h>
#include <linux/types.h>
#include <linux/ptrace.h>
#include <asm/system.h>
#include <asm/mipsregs.h>
+#include <asm/debug.h>
+
#include <asm/ddb5xxx/ddb5xxx.h>
-/* [jsun] sooner or later we should move this debug stuff to MIPS common */
-#include <asm/ddb5xxx/debug.h>
/*
* IRQ mapping
@@ -76,7 +76,7 @@
void
ddb5477_irq_setup(void)
{
- MIPS_DEBUG(printk("ddb5477_irq_setup invoked.\n"));
+ db_run(printk("ddb5477_irq_setup invoked.\n"));
/* by default, we disable all interrupts and route all vrc5477
* interrupts to pin 0 (irq 2) */
@@ -141,16 +141,16 @@
u32 bitmask;
u32 i;
- MIPS_ASSERT(ddb_in32(DDB_INT2STAT) == 0);
- MIPS_ASSERT(ddb_in32(DDB_INT3STAT) == 0);
- MIPS_ASSERT(ddb_in32(DDB_INT4STAT) == 0);
- MIPS_ASSERT(ddb_in32(DDB_NMISTAT) == 0);
+ db_assert(ddb_in32(DDB_INT2STAT) == 0);
+ db_assert(ddb_in32(DDB_INT3STAT) == 0);
+ db_assert(ddb_in32(DDB_INT4STAT) == 0);
+ db_assert(ddb_in32(DDB_NMISTAT) == 0);
if (ddb_in32(DDB_INT1STAT) != 0) {
-#if defined(CONFIG_LL_DEBUG)
+#if defined(CONFIG_DEBUG)
vrc5477_show_int_regs();
#endif
- panic("error interrupt has happened.\n");
+ panic("error interrupt has happened.");
}
intStatus = ddb_in32(DDB_INT0STAT);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)