summaryrefslogtreecommitdiff
path: root/lib_i386/realmode.c
diff options
context:
space:
mode:
authorGraeme Russ <graeme.russ@gmail.com>2009-11-24 20:04:20 +1100
committerWolfgang Denk <wd@denx.de>2009-12-05 01:05:07 +0100
commitcabe5794803fbe18bedac2d9c7f2417a0fa95ec1 (patch)
treee55d2181fbb2a2081c6a3fc6ac4f2815c97d9171 /lib_i386/realmode.c
parent0fc1b49ecbd7ec7371f9ede0600e4fd28cec7f33 (diff)
downloadu-boot-imx-cabe5794803fbe18bedac2d9c7f2417a0fa95ec1.zip
u-boot-imx-cabe5794803fbe18bedac2d9c7f2417a0fa95ec1.tar.gz
u-boot-imx-cabe5794803fbe18bedac2d9c7f2417a0fa95ec1.tar.bz2
i386: Move references to link script exports
Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
Diffstat (limited to 'lib_i386/realmode.c')
-rw-r--r--lib_i386/realmode.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib_i386/realmode.c b/lib_i386/realmode.c
index 6cf2738..3c3c1fc 100644
--- a/lib_i386/realmode.c
+++ b/lib_i386/realmode.c
@@ -31,10 +31,15 @@
#define REALMODE_MAILBOX ((char*)0xe00)
+extern ulong _i386boot_realmode;
+extern ulong _i386boot_realmode_size;
extern char realmode_enter;
int realmode_setup(void)
{
+ ulong i386boot_realmode = (ulong)&_i386boot_realmode;
+ ulong i386boot_realmode_size = (ulong)&_i386boot_realmode_size;
+
/* copy the realmode switch code */
if (i386boot_realmode_size > (REALMODE_MAILBOX-REALMODE_BASE)) {
printf("realmode switch too large (%ld bytes, max is %d)\n",