tilegx: support KGDB
authorChris Metcalf <cmetcalf@tilera.com>
Wed, 28 Aug 2013 23:53:17 +0000 (19:53 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Tue, 3 Sep 2013 18:51:26 +0000 (14:51 -0400)
commit8157107b13099d6eb2e8ccd00b9aba009c698c38
tree960e84859e05071a00a1e755b023dfbf3da939f0
parentb5c6c1a72afcc416c11ad932589054dcd3125782
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>
arch/tile/Kconfig
arch/tile/include/asm/kgdb.h [new file with mode: 0644]
arch/tile/kernel/Makefile
arch/tile/kernel/kgdb.c [new file with mode: 0644]
arch/tile/kernel/traps.c