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:
committed by
Wolfgang Denk
parent
8c63d47651
commit
e17ee157ca
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user