summaryrefslogtreecommitdiff
path: root/payloads/libpayload/arch
diff options
context:
space:
mode:
authorPatrick Georgi <patrick.georgi@coresystems.de>2010-06-24 11:16:10 +0000
committerPatrick Georgi <patrick.georgi@coresystems.de>2010-06-24 11:16:10 +0000
commit980a69b8c20ad975553980ccb320bf25ff7c0b16 (patch)
tree65b64bf8ac67db37bc8a868cc246ce41925c5915 /payloads/libpayload/arch
parent815c47f7b458f7342195ffe99e994e2757df96c1 (diff)
Attached patch moves functions out of the huge libpayload.h into headers
according to libc/posix traditions, to simplify porting applications to payloads. It also adds a couple of functions: strcasecmp, strncasecmp, strcat, strtol, strspn, strcspn, strtok_r, strtok, perror, exit, getpagesize Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5643 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'payloads/libpayload/arch')
-rw-r--r--payloads/libpayload/arch/i386/virtual.c5
-rw-r--r--payloads/libpayload/arch/powerpc/virtual.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/payloads/libpayload/arch/i386/virtual.c b/payloads/libpayload/arch/i386/virtual.c
index cff26117dc..256bfc25f7 100644
--- a/payloads/libpayload/arch/i386/virtual.c
+++ b/payloads/libpayload/arch/i386/virtual.c
@@ -30,3 +30,8 @@
unsigned long virtual_offset = 0;
+
+int getpagesize(void)
+{
+ return 4096;
+}
diff --git a/payloads/libpayload/arch/powerpc/virtual.c b/payloads/libpayload/arch/powerpc/virtual.c
index cff26117dc..6312ae13ca 100644
--- a/payloads/libpayload/arch/powerpc/virtual.c
+++ b/payloads/libpayload/arch/powerpc/virtual.c
@@ -30,3 +30,7 @@
unsigned long virtual_offset = 0;
+int getpagesize(void)
+{
+ return 4096;
+}