]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/x64/ProcessorBind.h
If "SupArchList" is defined for a PCD in MSA, should check current arch is in the...
[mirror_edk2.git] / MdePkg / Include / x64 / ProcessorBind.h
index d8c76922c89f9e2e4c22c463ad5a91539a0e4522..0d31352e39d7c2cfc9a0f72fc543aabd07025167 100644 (file)
@@ -70,7 +70,7 @@
 #endif\r
 \r
 \r
-#if (__STDC_VERSION__ < 199901L)\r
+#if !defined(__GNUC__) && (__STDC_VERSION__ < 199901L)\r
   //\r
   // No ANSI C 2000 stdint.h integer width declarations, so define equivalents\r
   //\r
@@ -155,18 +155,18 @@ typedef INT64   INTN;
 //\r
 // Processor specific defines\r
 //\r
-#define MAX_BIT     0x8000000000000000\r
-#define MAX_2_BITS  0xC000000000000000\r
+#define MAX_BIT     0x8000000000000000ULL\r
+#define MAX_2_BITS  0xC000000000000000ULL\r
 \r
 //\r
 // Maximum legal X64 address\r
 //\r
-#define MAX_ADDRESS   0xFFFFFFFFFFFFFFFF\r
+#define MAX_ADDRESS   0xFFFFFFFFFFFFFFFFULL\r
 \r
 //\r
 // The stack alignment required for X64\r
 //\r
-#define CPU_STACK_ALIGNMENT   sizeof(UINTN)\r
+#define CPU_STACK_ALIGNMENT   16\r
 \r
 //\r
 // Modifier to ensure that all protocol member functions and EFI intrinsics\r