summaryrefslogtreecommitdiffstats
path: root/board
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 /board
parent00940a229d564044d52a5449bce14090c7298f92 (diff)
downloadtalos-obmc-uboot-88fa0a6eb906b532cd073b6e3d8f688c47404709.tar.gz
talos-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 'board')
-rw-r--r--board/eNET/eNET_start.S2
-rw-r--r--board/eNET/eNET_start16.S3
2 files changed, 2 insertions, 3 deletions
diff --git a/board/eNET/eNET_start.S b/board/eNET/eNET_start.S
index 6659549a37..137fe41b4b 100644
--- a/board/eNET/eNET_start.S
+++ b/board/eNET/eNET_start.S
@@ -27,7 +27,7 @@
.globl early_board_init
early_board_init:
/* No 32-bit board specific initialisation */
- jmp *%ebp /* return to caller */
+ jmp early_board_init_ret
.globl cpu_halt_asm
cpu_halt_asm:
diff --git a/board/eNET/eNET_start16.S b/board/eNET/eNET_start16.S
index af2c132156..06cfd558d1 100644
--- a/board/eNET/eNET_start16.S
+++ b/board/eNET/eNET_start16.S
@@ -65,8 +65,7 @@ board_init16:
movl $0x000000cb, %eax
outl %eax, %dx
- /* the return address is stored in bp */
- jmp *%bp
+ jmp board_init16_ret
.section .bios, "ax"
.code16
OpenPOWER on IntegriCloud