From 980a69b8c20ad975553980ccb320bf25ff7c0b16 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Thu, 24 Jun 2010 11:16:10 +0000 Subject: 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 Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5643 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- payloads/libpayload/arch/i386/virtual.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'payloads/libpayload/arch/i386') 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; +} -- cgit v1.2.3