summaryrefslogtreecommitdiff
path: root/arch/i386/lib/realmode.c
diff options
context:
space:
mode:
authorGraeme Russ <graeme.russ@gmail.com>2010-04-24 00:05:45 +1000
committerWolfgang Denk <wd@denx.de>2010-05-06 00:15:58 +0200
commit153c2d9f2397e8b6ca03cfebb4e9666ea0b0637c (patch)
treee0c5ac2c31ada55fb1c32c23fd7986a6943b71b4 /arch/i386/lib/realmode.c
parent2fb1bc4f53618743b92a48763d7aaa0ece9ad98f (diff)
downloadu-boot-imx-153c2d9f2397e8b6ca03cfebb4e9666ea0b0637c.zip
u-boot-imx-153c2d9f2397e8b6ca03cfebb4e9666ea0b0637c.tar.gz
u-boot-imx-153c2d9f2397e8b6ca03cfebb4e9666ea0b0637c.tar.bz2
x86: Fix copying of Real-Mode code into RAM
Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
Diffstat (limited to 'arch/i386/lib/realmode.c')
-rw-r--r--arch/i386/lib/realmode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/i386/lib/realmode.c b/arch/i386/lib/realmode.c
index 3c3c1fc..b3f5123 100644
--- a/arch/i386/lib/realmode.c
+++ b/arch/i386/lib/realmode.c
@@ -37,7 +37,7 @@ extern char realmode_enter;
int realmode_setup(void)
{
- ulong i386boot_realmode = (ulong)&_i386boot_realmode;
+ ulong i386boot_realmode = (ulong)&_i386boot_realmode + gd->reloc_off;
ulong i386boot_realmode_size = (ulong)&_i386boot_realmode_size;
/* copy the realmode switch code */