projects
/
coreboot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't do a call as the first instruction in libpayload.
[coreboot.git]
/
payloads
/
libpayload
/
arch
/
i386
/
head.S
diff --git
a/payloads/libpayload/arch/i386/head.S
b/payloads/libpayload/arch/i386/head.S
index 88db4124d5627cca620419a8da4e16df44788cde..3dd61336f91013b7e8613b7cc0f79c634ea95db8 100644
(file)
--- a/
payloads/libpayload/arch/i386/head.S
+++ b/
payloads/libpayload/arch/i386/head.S
@@
-38,10
+38,7
@@
* change anything.
*/
_entry:
* change anything.
*/
_entry:
- call _init
-
- /* We're back - go back to the bootloader. */
- ret
+ jmp _init
.align 4
.align 4
@@
-66,6
+63,9
@@
_init:
/* No interrupts, please. */
cli
/* No interrupts, please. */
cli
+ /* There is a bunch of stuff missing here to take arguments on the stack
+ * See http://www.coreboot.org/Payload_API and exec.S.
+ */
/* Store current stack pointer. */
movl %esp, %esi
/* Store current stack pointer. */
movl %esp, %esi