diff options
author | Leif Lindholm <leif.lindholm@linaro.org> | 2019-09-26 20:28:18 +0100 |
---|---|---|
committer | Leif Lindholm <leif.lindholm@linaro.org> | 2019-10-01 10:55:38 +0100 |
commit | 5be5439a5a4e45382abdba2a4339db4bb8e4bbcb (patch) | |
tree | 4c156d518f5cbcfee18bfceb7b79af135ba79c3e | |
parent | ed9db1b91ceba7d3a24743d4d9314c6fbe11c4b3 (diff) | |
download | edk2-5be5439a5a4e45382abdba2a4339db4bb8e4bbcb.zip edk2-5be5439a5a4e45382abdba2a4339db4bb8e4bbcb.tar.gz edk2-5be5439a5a4e45382abdba2a4339db4bb8e4bbcb.tar.bz2 |
BaseTools: use stdint.h for GCC ProcessorBind.h typedefs
The AArch64 definitions of UINT64/INT64 differ from the X64 ones.
Since this is on the tool side, doing like X64 and picking the
definitions from stdint.h feels like a better idea than hardcoding
them. So copy the pattern from X64/ProcessorBind.h.
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
-rw-r--r-- | BaseTools/Source/C/Include/AArch64/ProcessorBind.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/BaseTools/Source/C/Include/AArch64/ProcessorBind.h b/BaseTools/Source/C/Include/AArch64/ProcessorBind.h index bfaf1e2..dfa725b 100644 --- a/BaseTools/Source/C/Include/AArch64/ProcessorBind.h +++ b/BaseTools/Source/C/Include/AArch64/ProcessorBind.h @@ -41,21 +41,21 @@ typedef signed char INT8;
#else
//
- // Assume standard AARCH64 alignment.
+ // Use ANSI C 2000 stdint.h integer width declarations
//
- typedef unsigned long long UINT64;
- typedef long long INT64;
- typedef unsigned int UINT32;
- typedef int INT32;
- typedef unsigned short UINT16;
- typedef unsigned short CHAR16;
- typedef short INT16;
- typedef unsigned char BOOLEAN;
- typedef unsigned char UINT8;
- typedef char CHAR8;
- typedef signed char INT8;
+ #include <stdint.h>
+ typedef uint8_t BOOLEAN;
+ typedef int8_t INT8;
+ typedef uint8_t UINT8;
+ typedef int16_t INT16;
+ typedef uint16_t UINT16;
+ typedef int32_t INT32;
+ typedef uint32_t UINT32;
+ typedef int64_t INT64;
+ typedef uint64_t UINT64;
+ typedef char CHAR8;
+ typedef uint16_t CHAR16;
- #define UINT8_MAX 0xff
#endif
///
|