]> rtime.felk.cvut.cz Git - arc.git/commitdiff
Fix to jump into debugger if bad_irq on HCS12
authorjoek <devnull@localhost>
Mon, 8 Nov 2010 18:16:18 +0000 (19:16 +0100)
committerjoek <devnull@localhost>
Mon, 8 Nov 2010 18:16:18 +0000 (19:16 +0100)
arch/hc1x/hcs12d/kernel/irq.c

index b0210b522b9159bf0588f7b936ae4da5d7732b1a..115f3035f42a07e31b0cf6b8400c669e51e38b0e 100644 (file)
@@ -50,7 +50,8 @@ void bad_irq(uint8_t irq_nr, void **stack) {
        bad_irq_context_bank = (bank_and_ccr & 0xFF00) >> 8;\r
        bad_irq_context_address = *(stack + 8);\r
 \r
-       for (;;);\r
+       for (;;)\r
+         asm("BGND"); // Jump to debugger\r
 }\r
 \r
 void *Irq_Entry( uint8_t irq_nr, void *stack )\r