From: Paul M. <le...@us...> - 2002-03-10 23:23:37
|
Update of /cvsroot/linux-mips/linux/arch/mips/vr41xx/vr4122/common In directory usw-pr-cvs1:/tmp/cvs-serv27731/vr4122/common Modified Files: icu.c Log Message: Add kgdb support to ICU code. Index: icu.c =================================================================== RCS file: /cvsroot/linux-mips/linux/arch/mips/vr41xx/vr4122/common/icu.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- icu.c 7 Mar 2002 03:16:54 -0000 1.1 +++ icu.c 10 Mar 2002 23:23:35 -0000 1.2 @@ -32,6 +32,9 @@ */ /* * Changes: + * Paul Mundt <le...@ch...> + * - kgdb support. + * * MontaVista Software Inc. <yy...@mv...> or <so...@mv...> * - New creation, NEC VR4122 and VR4131 are supported. */ @@ -43,6 +46,7 @@ #include <asm/io.h> #include <asm/mipsregs.h> #include <asm/vr41xx.h> +#include <asm/gdb-stub.h> #include "icu.h" @@ -314,7 +318,6 @@ void __init init_IRQ(void) { - memset(irq_desc, 0, sizeof(irq_desc)); init_generic_irq(); @@ -326,6 +329,12 @@ setup_irq(GIU_IRQ, &cascade); set_except_vector(0, vr41xx_handle_interrupt); + +#ifdef CONFIG_REMOTE_DEBUG + printk("Setting debug traps - please connect the remote debugger.\n"); + set_debug_traps(); + breakpoint(); +#endif } /*=======================================================================*/ |