diff options
author | Graeme Russ <graeme.russ@gmail.com> | 2010-10-07 20:03:31 +1100 |
---|---|---|
committer | Graeme Russ <graeme.russ@gmail.com> | 2010-10-07 20:03:31 +1100 |
commit | 067f9b10710e4edee97a9220b2ea8841c646368b (patch) | |
tree | 7fa11c1b1262288b2520158eff0da2a18b4c76e8 /arch/i386/lib/realmode.c | |
parent | c81b26beb87c5dbf6b5f68b779e529915178b17c (diff) | |
download | blackbird-obmc-uboot-067f9b10710e4edee97a9220b2ea8841c646368b.tar.gz blackbird-obmc-uboot-067f9b10710e4edee97a9220b2ea8841c646368b.zip |
x86: Rename linker script symbols
Create more generic names for the symbols exported from the linker script
Diffstat (limited to 'arch/i386/lib/realmode.c')
-rw-r--r-- | arch/i386/lib/realmode.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/i386/lib/realmode.c b/arch/i386/lib/realmode.c index b3f51230a5..60fe1816a1 100644 --- a/arch/i386/lib/realmode.c +++ b/arch/i386/lib/realmode.c @@ -31,23 +31,23 @@ #define REALMODE_MAILBOX ((char*)0xe00) -extern ulong _i386boot_realmode; -extern ulong _i386boot_realmode_size; +extern ulong __realmode_start; +extern ulong __realmode_size; extern char realmode_enter; int realmode_setup(void) { - ulong i386boot_realmode = (ulong)&_i386boot_realmode + gd->reloc_off; - ulong i386boot_realmode_size = (ulong)&_i386boot_realmode_size; + ulong realmode_start = (ulong)&__realmode_start + gd->reloc_off; + ulong realmode_size = (ulong)&__realmode_size; /* copy the realmode switch code */ - if (i386boot_realmode_size > (REALMODE_MAILBOX-REALMODE_BASE)) { + if (realmode_size > (REALMODE_MAILBOX-REALMODE_BASE)) { printf("realmode switch too large (%ld bytes, max is %d)\n", - i386boot_realmode_size, (REALMODE_MAILBOX-REALMODE_BASE)); + realmode_size, (REALMODE_MAILBOX-REALMODE_BASE)); return -1; } - memcpy(REALMODE_BASE, (void*)i386boot_realmode, i386boot_realmode_size); + memcpy(REALMODE_BASE, (void*)realmode_start, realmode_size); asm("wbinvd\n"); return 0; |