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

@ -145,6 +145,9 @@ void *malloc(size_t size);
void *calloc(size_t nmemb, size_t size);
void *realloc(void *ptr, size_t size);
/* libc/exec.c */
int exec(long addr, int argc, char **argv);
/* libc/lib.c */
int bcd2dec(int b);
int dec2bcd(int d);