x86: Remove usage of %ebp as a return pointer

Using %ebp as a return pointer prevents creating 'load anywhere' images
This commit is contained in:
Graeme Russ
2010-10-07 20:03:27 +11:00
parent 00940a229d
commit 88fa0a6eb9
5 changed files with 12 additions and 13 deletions

View File

@@ -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