diff options
author | Graeme Russ | 2009-02-24 21:14:56 +1100 |
---|---|---|
committer | Wolfgang Denk | 2009-03-20 22:39:13 +0100 |
commit | e17ee157ca9ff0d4cc5841d06c4b70c1603df29c (patch) | |
tree | b86269e5e8d1b944250fdf4b98d3bed066ba7f92 /lib_i386/interrupts.c | |
parent | 8c63d47651f77d9fb887cad433370b866eb0a193 (diff) |
Add basic relocation to i386 port
Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
Diffstat (limited to 'lib_i386/interrupts.c')
-rw-r--r-- | lib_i386/interrupts.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib_i386/interrupts.c b/lib_i386/interrupts.c index b0f84de4eb5..3f3613a2fba 100644 --- a/lib_i386/interrupts.c +++ b/lib_i386/interrupts.c @@ -70,12 +70,12 @@ void irq_install_handler(int irq, interrupt_handler_t *handler, void *arg) if (irq_handlers[irq].handler != NULL) printf("irq_install_handler: 0x%08lx replacing 0x%08lx\n", - (ulong) handler, + (ulong) handler + gd->reloc_off, (ulong) irq_handlers[irq].handler); status = disable_interrupts (); - irq_handlers[irq].handler = handler; + irq_handlers[irq].handler = handler + gd->reloc_off; irq_handlers[irq].arg = arg; irq_handlers[irq].count = 0; |