libpayload: Add an exec() and i386_do_exec() function

Add functions for libpayload to execute other payloads in memory,
and have those functions return cleanly.

Signed-off-by: Jordan Crouse <jordan.crouse@amd.com>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>


git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3338 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Jordan Crouse
2008-05-20 20:10:49 +00:00
parent 506980808d
commit 9dac1b4cca
6 changed files with 158 additions and 4 deletions

View File

@@ -63,13 +63,14 @@ _init:
/* Let's rock. */
call start_main
/* %eax has the return value - pass it on unmolested */
_leave:
/* Get old stack pointer. */
popl %ebx
/* Restore old stack. */
movl %esp, %ebx
movl %ebx, %esp
/* Return to the original context. */
lret
ret