X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdePkg%2FInclude%2Fx64%2FProcessorBind.h;h=34b35a89b8dcf488d4f924061d2e815202a41b40;hp=d8c76922c89f9e2e4c22c463ad5a91539a0e4522;hb=a477a165ffb7061b917a588a041a2fcb7e055c47;hpb=caae4de6b65ff0b232de942b52ece4cb4e6fbb90 diff --git a/MdePkg/Include/x64/ProcessorBind.h b/MdePkg/Include/x64/ProcessorBind.h index d8c76922c8..34b35a89b8 100644 --- a/MdePkg/Include/x64/ProcessorBind.h +++ b/MdePkg/Include/x64/ProcessorBind.h @@ -26,8 +26,9 @@ // // Make sure we are useing the correct packing rules per EFI specification // +#ifndef __GNUC__ #pragma pack() - +#endif #if _MSC_EXTENSIONS @@ -70,7 +71,7 @@ #endif -#if (__STDC_VERSION__ < 199901L) +#if !defined(__GNUC__) && (__STDC_VERSION__ < 199901L) // // No ANSI C 2000 stdint.h integer width declarations, so define equivalents // @@ -155,18 +156,18 @@ typedef INT64 INTN; // // Processor specific defines // -#define MAX_BIT 0x8000000000000000 -#define MAX_2_BITS 0xC000000000000000 +#define MAX_BIT 0x8000000000000000ULL +#define MAX_2_BITS 0xC000000000000000ULL // // Maximum legal X64 address // -#define MAX_ADDRESS 0xFFFFFFFFFFFFFFFF +#define MAX_ADDRESS 0xFFFFFFFFFFFFFFFFULL // // The stack alignment required for X64 // -#define CPU_STACK_ALIGNMENT sizeof(UINTN) +#define CPU_STACK_ALIGNMENT 16 // // Modifier to ensure that all protocol member functions and EFI intrinsics