From 903f8e03307de8a689244eec5bf9aface73850b1 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Tue, 26 Feb 2013 23:18:24 -0800 Subject: 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 Reviewed-on: http://review.coreboot.org/2669 Tested-by: build bot (Jenkins) Reviewed-by: Marc Jones Reviewed-by: Ronald G. Minnich --- payloads/libpayload/include/armv7/arch/types.h | 3 +++ payloads/libpayload/include/x86/arch/types.h | 3 +++ 2 files changed, 6 insertions(+) (limited to 'payloads') 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 -- cgit v1.1