diff options
author | Gabe Black <gabeblack@google.com> | 2013-02-26 23:18:24 -0800 |
---|---|---|
committer | Ronald G. Minnich <rminnich@gmail.com> | 2013-03-13 23:41:40 +0100 |
commit | 903f8e03307de8a689244eec5bf9aface73850b1 (patch) | |
tree | c2d0ff401ba6f5e4f25ba20b25575224b86157de /payloads/libpayload/include | |
parent | a0e27979c06088912489633a67644254bc5a1f70 (diff) |
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>
Reviewed-on: http://review.coreboot.org/2669
Tested-by: build bot (Jenkins)
Reviewed-by: Marc Jones <marc.jones@se-eng.com>
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'payloads/libpayload/include')
-rw-r--r-- | payloads/libpayload/include/armv7/arch/types.h | 3 | ||||
-rw-r--r-- | payloads/libpayload/include/x86/arch/types.h | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/payloads/libpayload/include/armv7/arch/types.h b/payloads/libpayload/include/armv7/arch/types.h index 1bd815bb44..d6f4aa8b66 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 1bd815bb44..d6f4aa8b66 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 |