diff options
author | Graeme Russ <graeme.russ@gmail.com> | 2011-02-12 15:12:05 +1100 |
---|---|---|
committer | Graeme Russ <graeme.russ@gmail.com> | 2011-02-12 15:12:05 +1100 |
commit | 5fed82110dff2d378e0a50787dcd1a96d83c3c5b (patch) | |
tree | c7d293d9cc84b589b358e678135be3cc622471d0 /arch/i386/cpu | |
parent | 0b2378557c66f97449fe899d51171819599cfc1b (diff) | |
download | u-boot-imx-5fed82110dff2d378e0a50787dcd1a96d83c3c5b.zip u-boot-imx-5fed82110dff2d378e0a50787dcd1a96d83c3c5b.tar.gz u-boot-imx-5fed82110dff2d378e0a50787dcd1a96d83c3c5b.tar.bz2 |
x86: Fix incorrect usage of relocation offset
x86 has always used relocation offset in the opposite sense to the ELF
standard - Fix this
Diffstat (limited to 'arch/i386/cpu')
-rw-r--r-- | arch/i386/cpu/start.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/i386/cpu/start.S b/arch/i386/cpu/start.S index fd018bf..0031389 100644 --- a/arch/i386/cpu/start.S +++ b/arch/i386/cpu/start.S @@ -120,7 +120,7 @@ relocate_code: /* Setup call address of in-RAM copy of board_init_r() */ movl $board_init_r, %ebp - subl (GD_RELOC_OFF * 4)(%edx), %ebp + addl (GD_RELOC_OFF * 4)(%edx), %ebp /* Setup parameters to board_init_r() */ movl %edx, %eax |