diff options
| author | Bart Kuivenhoven <bemk@redhat.com> | 2013-10-08 12:54:00 +0200 |
|---|---|---|
| committer | Bart Kuivenhoven <bemk@redhat.com> | 2013-10-08 13:13:01 +0200 |
| commit | 13bb545e74116756af96d66f53b0a33d55381ac9 (patch) | |
| tree | eaec5eb0df4080b1e0358631dd4fd3737500f255 | |
| parent | c8ed17fd278ceff71b4069974f5f17e71058c8de (diff) | |
| download | gnu-efi-3.0-13bb545e74116756af96d66f53b0a33d55381ac9.tar.gz gnu-efi-3.0-13bb545e74116756af96d66f53b0a33d55381ac9.tar.xz gnu-efi-3.0-13bb545e74116756af96d66f53b0a33d55381ac9.zip | |
aarch64: type info
After some tests using the aarch64 GNU compiler, I've found that these
are the best settings to make the type sizes match.
Signed-off-by: Bart Kuivenhoven <bemk@redhat.com>
| -rw-r--r-- | gnu-efi-3.0/inc/aarch64/efibind.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gnu-efi-3.0/inc/aarch64/efibind.h b/gnu-efi-3.0/inc/aarch64/efibind.h index ac0c41c..7b78a5a 100644 --- a/gnu-efi-3.0/inc/aarch64/efibind.h +++ b/gnu-efi-3.0/inc/aarch64/efibind.h @@ -14,9 +14,8 @@ resolving these issues." #endif #if defined(__GNUC__) -/* These bunch of typedefs are unchecked, might be wrong, I don't know yet */ - typedef int __attribute__((__mode__(__DI__))) int64_t; - typedef unsigned int __attribute__((__mode__(__DI__))) uint64_t; + typedef long int64_t; + typedef unsigned long uint64_t; typedef unsigned int uint32_t; typedef int int32_t; typedef unsigned short uint16_t; @@ -31,6 +30,7 @@ resolving these issues." * architecture dependent header files, I don't know. Moving them out into * multi-architecture headerfiles might save on some code duplication, but what * ever. */ + #ifndef __WCHAR_TYPE__ # define __WCHAR_TYPE__ int16_t #endif @@ -88,7 +88,6 @@ typedef uint64_t UINTN; // // Define macros to create data structure signatures. // - #define EFI_SIGNATURE_16(A,B) ((A) | (B<<8)) #define EFI_SIGNATURE_32(A,B,C,D) (EFI_SIGNATURE_16(A,B) | (EFI_SIGNATURE_16(C,D) << 16)) #define EFI_SIGNATURE_64(A,B,C,D,E,F,G,H) (EFI_SIGNATURE_32(A,B,C,D) | ((UINT64)(EFI_SIGNATURE_32(E,F,G,H)) << 32)) |
