1 /*
2  * This file is subject to the terms and conditions of the GNU General Public
3  * License.  See the file "COPYING" in the main directory of this archive
4  * for more details.
5  *
6  * Code to handle x86 style IRQs plus some generic interrupt stuff.
7  *
8  * Copyright (C) 1992 Linus Torvalds
9  * Copyright (C) 1994 - 2000 Ralf Baechle
10  */
11 
12 #include <linux/config.h>
13 #include <linux/init.h>
14 #include <linux/interrupt.h>
15 #include <asm/mipsregs.h>
16 #include <asm/system.h>
17 #include <asm/gdb-stub.h>
18 
19 
20 /* install the handler for exception 0 */
init_IRQ(void)21 void __init init_IRQ(void)
22 {
23     extern void hpIRQ(void);
24     extern void mips_cpu_irq_init(u32 base);
25     mips_cpu_irq_init(0);
26     set_except_vector(0, hpIRQ);
27 
28 #ifdef CONFIG_KGDB
29     {
30        extern void breakpoint(void);
31        extern int remote_debug;
32 
33        if (remote_debug) {
34           set_debug_traps();
35           breakpoint();
36        }
37     }
38 #endif
39 
40 }
41 
42