Stefan Reinauer (stefan.reinauer@coreboot.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/2669
-gerrit
commit eec503dcc4bbedc5e9da50a1a3f043c8d782d367 Author: Gabe Black gabeblack@google.com Date: Tue Feb 26 23:18:24 2013 -0800
libpayload: Add size_t and ssize_t types for ARM and x86
Some new TPM drivers in depthcharge require that type. I added it to arch/types.h which seemed appropriate, but I'm not sure that's exactly the right header to use, or in other words if you'd get that type from libpayload the same way you'd get it if you were building a standard Linux program.
Also, I attempted to determine what underlying types gcc would use, and while I think I picked the right ones I'm not 100% certain of that either.
Change-Id: Ic5c0b4173c8565ede3bfce8870976d596d69e51d Signed-off-by: Gabe Black gabeblack@google.com --- payloads/libpayload/include/armv7/arch/types.h | 3 +++ payloads/libpayload/include/x86/arch/types.h | 3 +++ 2 files changed, 6 insertions(+)
diff --git a/payloads/libpayload/include/armv7/arch/types.h b/payloads/libpayload/include/armv7/arch/types.h index 1bd815b..d6f4aa8 100644 --- a/payloads/libpayload/include/armv7/arch/types.h +++ b/payloads/libpayload/include/armv7/arch/types.h @@ -53,6 +53,9 @@ typedef signed long long s64; typedef long time_t; typedef long suseconds_t;
+typedef unsigned int size_t; +typedef int ssize_t; + #ifndef NULL #define NULL ((void *)0) #endif diff --git a/payloads/libpayload/include/x86/arch/types.h b/payloads/libpayload/include/x86/arch/types.h index 1bd815b..d6f4aa8 100644 --- a/payloads/libpayload/include/x86/arch/types.h +++ b/payloads/libpayload/include/x86/arch/types.h @@ -53,6 +53,9 @@ typedef signed long long s64; typedef long time_t; typedef long suseconds_t;
+typedef unsigned int size_t; +typedef int ssize_t; + #ifndef NULL #define NULL ((void *)0) #endif