1 /*
2  * Copyright 2001 MontaVista Software Inc.
3  * Author: jsun@mvista.com or jsun@junsun.net
4  *
5  * arch/mips/ddb5xxx/common/irq.c
6  *     Common irq code for DDB boards.  This really should belong
7  *	arch/mips/kernel/irq.c.  Need to talk to Ralf.
8  *
9  * This program is free software; you can redistribute  it and/or modify it
10  * under  the terms of  the GNU General  Public License as published by the
11  * Free Software Foundation;  either version 2 of the  License, or (at your
12  * option) any later version.
13  */
14 #include <linux/config.h>
15 #include <linux/init.h>
16 #include <asm/irq.h>
17 
18 void (*irq_setup)(void);
19 
init_IRQ(void)20 void __init init_IRQ(void)
21 {
22 #ifdef CONFIG_KGDB
23 	extern void breakpoint(void);
24 	extern void set_debug_traps(void);
25 
26 	printk("Wait for gdb client connection ...\n");
27 	set_debug_traps();
28 	breakpoint();
29 #endif
30 	/* set up default irq controller */
31 	init_generic_irq();
32 
33 	/* invoke board-specific irq setup */
34 	irq_setup();
35 }
36