summaryrefslogtreecommitdiff
path: root/arch/i386/lib/realmode.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/i386/lib/realmode.c')
-rw-r--r--arch/i386/lib/realmode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/i386/lib/realmode.c b/arch/i386/lib/realmode.c
index 3c3c1fc..b3f5123 100644
--- a/arch/i386/lib/realmode.c
+++ b/arch/i386/lib/realmode.c
@@ -37,7 +37,7 @@ extern char realmode_enter;
int realmode_setup(void)
{
- ulong i386boot_realmode = (ulong)&_i386boot_realmode;
+ ulong i386boot_realmode = (ulong)&_i386boot_realmode + gd->reloc_off;
ulong i386boot_realmode_size = (ulong)&_i386boot_realmode_size;
/* copy the realmode switch code */