sh: nmi_debug support.
authorPaul Mundt <lethal@linux-sh.org>
Tue, 1 Sep 2009 08:38:32 +0000 (17:38 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 1 Sep 2009 08:38:32 +0000 (17:38 +0900)
commit1e1030dccb1084c8a38976d3656aab1d50d762da
tree18c62bd2a12dbb8e8aae56d771f0561784af186b
parentac6a0cf6716bb46813d0161024c66c2af66e53d1
sh: nmi_debug support.

This implements support for NMI debugging that was shamelessly copied
from the avr32 port. A bit of special magic is needed in the interrupt
exception path given that the NMI exception handler is stubbed in to the
regular exception handling table despite being reported in INTEVT. So we
mangle the lookup and kick off an EXPEVT-style exception dispatch from
the INTEVT path for exceptions that do_IRQ() has no chance of handling.
As a result, we also drop the evt2irq() conversion from the do_IRQ() path
and just do it in assembly.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Documentation/kernel-parameters.txt
arch/sh/include/asm/kdebug.h
arch/sh/include/asm/system.h
arch/sh/kernel/Makefile
arch/sh/kernel/cpu/sh3/entry.S
arch/sh/kernel/cpu/sh3/ex.S
arch/sh/kernel/irq.c
arch/sh/kernel/nmi_debug.c [new file with mode: 0644]
arch/sh/kernel/traps.c