ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / arch / mips / hp-lj / irq.c
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 #include <linux/config.h>
12 #include <linux/init.h>
13 #include <linux/interrupt.h>
14 #include <asm/mipsregs.h>
15 #include <asm/system.h>
16 #include <asm/gdb-stub.h>
17
18 void __init init_IRQ(void)
19 {
20         extern void hpIRQ(void);
21         extern void mips_cpu_irq_init(u32 base);
22         mips_cpu_irq_init(0);
23         set_except_vector(0, hpIRQ);
24
25 #ifdef CONFIG_KGDB
26         {
27                 extern void breakpoint(void);
28                 extern int remote_debug;
29
30                 if (remote_debug) {
31                         set_debug_traps();
32                         breakpoint();
33                 }
34         }
35 #endif
36
37 }