commit | 564a9984bdbf86a02cf4f0d848933a9fff4a1d18 | [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 | 27f13075a659da046372dfe249d808f2f6ddb432 [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;