diff options
Diffstat (limited to 'lib_i386/interrupts.c')
-rw-r--r-- | lib_i386/interrupts.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib_i386/interrupts.c b/lib_i386/interrupts.c index 3f3613a..efbad72 100644 --- a/lib_i386/interrupts.c +++ b/lib_i386/interrupts.c @@ -109,8 +109,10 @@ void irq_free_handler(int irq) return; } -__isr__ do_irq(int irq) +void do_irq(int hw_irq) { + int irq = hw_irq - 0x20; + if (irq < 0 || irq >= CONFIG_SYS_NUM_IRQS) { printf("do_irq: bad irq number %d\n", irq); return; |