commit | d11b0851236c536c2d483d58fba50e6e31adcf2c | [log] [tgz] |
---|---|---|
author | Graeme Russ <graeme.russ@gmail.com> | Tue Nov 24 20:04:18 2009 +1100 |
committer | Wolfgang Denk <wd@denx.de> | Sat Dec 05 01:04:18 2009 +0100 |
tree | 09f093703b988d3a229294649429672452a5a891 | |
parent | cc272ebde3fb9e69b21800ac22b6038b8977b0cf [diff] [blame] |
i386: Rearrange Interupt Handling In preperation for full relocation Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
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 @@ 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;