diff options
author | Chris Metcalf <cmetcalf@tilera.com> | 2013-08-28 19:53:17 -0400 |
---|---|---|
committer | Chris Metcalf <cmetcalf@tilera.com> | 2013-09-03 14:51:26 -0400 |
commit | 8157107b13099d6eb2e8ccd00b9aba009c698c38 (patch) | |
tree | 960e84859e05071a00a1e755b023dfbf3da939f0 /arch/tile/kernel/traps.c | |
parent | b5c6c1a72afcc416c11ad932589054dcd3125782 (diff) |
tilegx: support KGDB
Enter kernel debugger at boot with:
--hvd UART_1=1 --hvx kgdbwait --hvx kgdboc=ttyS1,115200
or at runtime with:
echo ttyS1,115200 > /sys/module/kgdboc/parameters/kgdboc
echo g > /proc/sysrq-trigger
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Diffstat (limited to 'arch/tile/kernel/traps.c')
-rw-r--r-- | arch/tile/kernel/traps.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/tile/kernel/traps.c b/arch/tile/kernel/traps.c index 628661f6a929..a937365b3429 100644 --- a/arch/tile/kernel/traps.c +++ b/arch/tile/kernel/traps.c | |||
@@ -240,6 +240,11 @@ static int do_bpt(struct pt_regs *regs) | |||
240 | notify_die(DIE_BREAK, "debug", regs, bundle, | 240 | notify_die(DIE_BREAK, "debug", regs, bundle, |
241 | INT_ILL, SIGTRAP); | 241 | INT_ILL, SIGTRAP); |
242 | break; | 242 | break; |
243 | /* compiled_bpt */ | ||
244 | case DIE_COMPILED_BPT: | ||
245 | notify_die(DIE_COMPILED_BPT, "debug", regs, bundle, | ||
246 | INT_ILL, SIGTRAP); | ||
247 | break; | ||
243 | /* breakpoint2_insn */ | 248 | /* breakpoint2_insn */ |
244 | case DIE_SSTEPBP: | 249 | case DIE_SSTEPBP: |
245 | notify_die(DIE_SSTEPBP, "single_step", regs, bundle, | 250 | notify_die(DIE_SSTEPBP, "single_step", regs, bundle, |