initial commit with v2.6.9
[linux-2.6.9-moxart.git] / arch / mips / ddb5xxx / common / irq.c
blob737e6e67ab1f44cbad5c1a5eb4cb38233dc07621
1 /*
2 * Copyright 2001 MontaVista Software Inc.
3 * Author: jsun@mvista.com or jsun@junsun.net
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.
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.
14 #include <linux/config.h>
15 #include <linux/init.h>
16 #include <asm/irq.h>
18 void (*irq_setup)(void);
20 #ifdef CONFIG_KGDB
21 static int kgdb_flag = 1;
22 static int __init nokgdb(char *str)
24 kgdb_flag = 0;
25 return 1;
27 __setup("nokgdb", nokgdb);
28 #endif
30 void __init init_IRQ(void)
32 #ifdef CONFIG_KGDB
33 extern void breakpoint(void);
34 extern void set_debug_traps(void);
36 if (kgdb_flag) {
37 printk("Wait for gdb client connection ...\n");
38 set_debug_traps();
39 breakpoint();
41 #endif
42 /* set up default irq controller */
43 init_generic_irq();
45 /* invoke board-specific irq setup */
46 irq_setup();