summaryrefslogtreecommitdiffstats
path: root/arch/avr32/kernel/irq.c
diff options
context:
space:
mode:
authorHaavard Skinnemoen <hskinnemoen@atmel.com>2007-10-10 14:58:29 +0200
committerHaavard Skinnemoen <hskinnemoen@atmel.com>2008-01-25 08:31:43 +0100
commite7ba176b47db2ed53f258a6b4fe9d9fc6fa437a9 (patch)
treebeb9ffab7da0c24f11c04b6eb4ca29b23b1dd07b /arch/avr32/kernel/irq.c
parentf6135d12db4bed3b992052020f1c50d749cd8dc6 (diff)
downloadop-kernel-dev-e7ba176b47db2ed53f258a6b4fe9d9fc6fa437a9.zip
op-kernel-dev-e7ba176b47db2ed53f258a6b4fe9d9fc6fa437a9.tar.gz
[AVR32] NMI debugging
Change the NMI handler to use the die notifier chain to signal anyone who cares. Add a simple "nmi debugger" which hooks into this chain and that may dump registers, task state, etc. when it happens. Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Diffstat (limited to 'arch/avr32/kernel/irq.c')
-rw-r--r--arch/avr32/kernel/irq.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/avr32/kernel/irq.c b/arch/avr32/kernel/irq.c
index 61f2de2..a8e767d 100644
--- a/arch/avr32/kernel/irq.c
+++ b/arch/avr32/kernel/irq.c
@@ -25,6 +25,17 @@ void ack_bad_irq(unsigned int irq)
printk("unexpected IRQ %u\n", irq);
}
+/* May be overridden by platform code */
+int __weak nmi_enable(void)
+{
+ return -ENOSYS;
+}
+
+void __weak nmi_disable(void)
+{
+
+}
+
#ifdef CONFIG_PROC_FS
int show_interrupts(struct seq_file *p, void *v)
{
OpenPOWER on IntegriCloud