X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Fppc%2Fkernel%2Fppc-stub.c;h=37c9c8b2c57863be6d240cfb9f57b84ac4bf02e0;hb=5e3b93f248c98873cc843e83092bb8da92ac85a2;hp=a869750323bd90ab6e25aed4f160beb48b899c81;hpb=a91482bdcc2e0f6035702e46f1b99043a0893346;p=linux-2.6.git diff --git a/arch/ppc/kernel/ppc-stub.c b/arch/ppc/kernel/ppc-stub.c index a86975032..37c9c8b2c 100644 --- a/arch/ppc/kernel/ppc-stub.c +++ b/arch/ppc/kernel/ppc-stub.c @@ -105,8 +105,6 @@ #include #include #include -#include -#include #include #include @@ -234,7 +232,7 @@ mem2hex(const char *mem, char *buf, int count) } else { /* error condition */ } - debugger_fault_handler = NULL; + debugger_fault_handler = 0; *buf = 0; return buf; } @@ -300,7 +298,7 @@ hex2mem(char *buf, char *mem, int count) } else { /* error condition */ } - debugger_fault_handler = NULL; + debugger_fault_handler = 0; return mem; } @@ -331,7 +329,7 @@ hexToInt(char **ptr, int *intValue) } else { /* error condition */ } - debugger_fault_handler = NULL; + debugger_fault_handler = 0; return (numChars); } @@ -857,23 +855,3 @@ kgdb_output_string (const char* s, unsigned int count) return 1; } #endif - -static void sysrq_handle_gdb(int key, struct pt_regs *pt_regs, - struct tty_struct *tty) -{ - printk("Entering GDB stub\n"); - breakpoint(); -} -static struct sysrq_key_op sysrq_gdb_op = { - .handler = sysrq_handle_gdb, - .help_msg = "Gdb", - .action_msg = "GDB", -}; - -static int gdb_register_sysrq(void) -{ - printk("Registering GDB sysrq handler\n"); - register_sysrq_key('g', &sysrq_gdb_op); - return 0; -} -module_init(gdb_register_sysrq);