]> git.sur5r.net Git - u-boot/blobdiff - arch/x86/lib/realmode.c
x86: Put global data on the stack
[u-boot] / arch / x86 / lib / realmode.c
index bf0d0aaa31e16bf42a5278cdde82fd6c0c8a4f6d..75511b2bdf9893f29483d6d3b70d8817f43c3f47 100644 (file)
 
 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 */