This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / arch / mips / mips-boards / atlas / atlas_int.c
index de77f00..1e832a6 100644 (file)
@@ -118,7 +118,12 @@ void atlas_hw0_irqdispatch(struct pt_regs *regs)
        do_IRQ(irq, regs);
 }
 
-void __init arch_init_irq(void)
+#ifdef CONFIG_KGDB
+extern void breakpoint(void);
+extern int remote_debug;
+#endif
+
+void __init init_IRQ(void)
 {
        int i;
 
@@ -140,4 +145,11 @@ void __init arch_init_irq(void)
                irq_desc[i].handler     = &atlas_irq_type;
                spin_lock_init(&irq_desc[i].lock);
        }
+
+#ifdef CONFIG_KGDB
+       if (remote_debug) {
+               set_debug_traps();
+               breakpoint();
+       }
+#endif
 }