summaryrefslogtreecommitdiffstats
path: root/arch/i386/cpu/sc520/sc520_asm.S
diff options
context:
space:
mode:
authorGraeme Russ <graeme.russ@gmail.com>2010-10-07 20:03:27 +1100
committerGraeme Russ <graeme.russ@gmail.com>2010-10-07 20:03:27 +1100
commit88fa0a6eb906b532cd073b6e3d8f688c47404709 (patch)
tree051370dd80becb73110138d0eb39a0767bbb83a8 /arch/i386/cpu/sc520/sc520_asm.S
parent00940a229d564044d52a5449bce14090c7298f92 (diff)
downloadblackbird-obmc-uboot-88fa0a6eb906b532cd073b6e3d8f688c47404709.tar.gz
blackbird-obmc-uboot-88fa0a6eb906b532cd073b6e3d8f688c47404709.zip
x86: Remove usage of %ebp as a return pointer
Using %ebp as a return pointer prevents creating 'load anywhere' images
Diffstat (limited to 'arch/i386/cpu/sc520/sc520_asm.S')
-rw-r--r--arch/i386/cpu/sc520/sc520_asm.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/i386/cpu/sc520/sc520_asm.S b/arch/i386/cpu/sc520/sc520_asm.S
index e0d3102ce2..a18e2c3d0c 100644
--- a/arch/i386/cpu/sc520/sc520_asm.S
+++ b/arch/i386/cpu/sc520/sc520_asm.S
@@ -517,7 +517,7 @@ bad_ram:
jmp bad_reint
dram_done:
- jmp *%ebp
+ jmp mem_init_ret
#if CONFIG_SYS_SDRAM_ECC_ENABLE
.globl init_ecc
@@ -562,7 +562,7 @@ set_ecc:
movb %al,(%edi)
out:
- jmp *%ebp
+ jmp init_ecc_ret
#endif
/*
@@ -607,4 +607,4 @@ bank3: movl (%edi), %eax
done:
movl %ebx, %eax
- jmp *%ebp
+ jmp get_mem_size_ret
OpenPOWER on IntegriCloud