summaryrefslogtreecommitdiff
path: root/arch/x86/lib/realmode.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/lib/realmode.c')
-rw-r--r--arch/x86/lib/realmode.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/x86/lib/realmode.c b/arch/x86/lib/realmode.c
index bf0d0aaa31e..75511b2bdf9 100644
--- a/arch/x86/lib/realmode.c
+++ b/arch/x86/lib/realmode.c
@@ -30,11 +30,8 @@
int realmode_setup(void)
{
- /*
- * The realmode section is not relocated and still in the ROM. The
- * __realmode_start symbol was adjusted, though, so adjust it back.
- */
- ulong realmode_start = (ulong)&__realmode_start - gd->reloc_off;
+ /* The realmode section is not relocated and still in the ROM. */
+ ulong realmode_start = (ulong)&__realmode_start;
ulong realmode_size = (ulong)&__realmode_size;
/* copy the realmode switch code */