]> git.sur5r.net Git - u-boot/blobdiff - arch/x86/lib/realmode.c
x86: Allow cache before copy to RAM
[u-boot] / arch / x86 / lib / realmode.c
index 5a525ee79e1b3dff0f8e9d46897b7b0f5b3ceebd..75511b2bdf9893f29483d6d3b70d8817f43c3f47 100644 (file)
@@ -30,7 +30,8 @@
 
 int realmode_setup(void)
 {
-       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 */