1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-26 13:01:17 +02:00

Add basic relocation to i386 port

Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
This commit is contained in:
Graeme Russ
2009-02-24 21:14:56 +11:00
committed by Wolfgang Denk
parent 8c63d47651
commit e17ee157ca
7 changed files with 77 additions and 5 deletions

View File

@@ -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);
}