#include <linux/mm.h>
#include <linux/smp.h>
#include <linux/smp_lock.h>
-#include <linux/init.h>
-#include <linux/sysrq.h>
#include <asm/cacheflush.h>
#include <asm/system.h>
} else {
/* error condition */
}
- debugger_fault_handler = NULL;
+ debugger_fault_handler = 0;
*buf = 0;
return buf;
}
} else {
/* error condition */
}
- debugger_fault_handler = NULL;
+ debugger_fault_handler = 0;
return mem;
}
} else {
/* error condition */
}
- debugger_fault_handler = NULL;
+ debugger_fault_handler = 0;
return (numChars);
}
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);