summaryrefslogtreecommitdiff
path: root/payloads/libpayload/include
diff options
context:
space:
mode:
authorJordan Crouse <jordan.crouse@amd.com>2008-05-20 20:10:49 +0000
committerJordan Crouse <jordan.crouse@amd.com>2008-05-20 20:10:49 +0000
commit9dac1b4cca496e5293ca888d4f08411d8580ca08 (patch)
tree72bb2bcbae3f6c61cad69fe338cba2efb37cf776 /payloads/libpayload/include
parent506980808d2f525e294cdd364b2b4e08276ab8d9 (diff)
downloadcoreboot-9dac1b4cca496e5293ca888d4f08411d8580ca08.tar.xz
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
Diffstat (limited to 'payloads/libpayload/include')
-rw-r--r--payloads/libpayload/include/libpayload.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/payloads/libpayload/include/libpayload.h b/payloads/libpayload/include/libpayload.h
index 8535bd04fa..f9a67ed862 100644
--- a/payloads/libpayload/include/libpayload.h
+++ b/payloads/libpayload/include/libpayload.h
@@ -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);