summaryrefslogtreecommitdiff
path: root/cpu/i386/interrupts.c
diff options
context:
space:
mode:
authorGraeme Russ <graeme.russ@gmail.com>2009-02-24 21:14:56 +1100
committerWolfgang Denk <wd@denx.de>2009-03-20 22:39:13 +0100
commite17ee157ca9ff0d4cc5841d06c4b70c1603df29c (patch)
treeb86269e5e8d1b944250fdf4b98d3bed066ba7f92 /cpu/i386/interrupts.c
parent8c63d47651f77d9fb887cad433370b866eb0a193 (diff)
downloadu-boot-imx-e17ee157ca9ff0d4cc5841d06c4b70c1603df29c.zip
u-boot-imx-e17ee157ca9ff0d4cc5841d06c4b70c1603df29c.tar.gz
u-boot-imx-e17ee157ca9ff0d4cc5841d06c4b70c1603df29c.tar.bz2
Add basic relocation to i386 port
Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
Diffstat (limited to 'cpu/i386/interrupts.c')
-rw-r--r--cpu/i386/interrupts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpu/i386/interrupts.c b/cpu/i386/interrupts.c
index 026a21b..063ea42 100644
--- a/cpu/i386/interrupts.c
+++ b/cpu/i386/interrupts.c
@@ -53,8 +53,8 @@ asm ("idt_ptr:\n"
void set_vector(u8 intnum, void *routine)
{
- idt[intnum].base_high = (u16)((u32)(routine)>>16);
- idt[intnum].base_low = (u16)((u32)(routine)&0xffff);
+ idt[intnum].base_high = (u16)((u32)(routine + gd->reloc_off) >> 16);
+ idt[intnum].base_low = (u16)((u32)(routine + gd->reloc_off) & 0xffff);
}