]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Arm/ProcessorBind.h
MdePkg/ProcessorBind: add defines for page allocation granularity
[mirror_edk2.git] / MdePkg / Include / Arm / ProcessorBind.h
index c2482c2f50f0efeb3b0b1ff18fbb20b68cc13bfa..dde1fd1152bab6dba64cb3fea1023903441a177c 100644 (file)
 #pragma pack()\r
 #endif\r
 \r
+//\r
+// RVCT does not support the __builtin_unreachable() macro\r
+//\r
+#ifdef __ARMCC_VERSION\r
+#define UNREACHABLE()\r
+#endif\r
+\r
 #if _MSC_EXTENSIONS \r
   //\r
-  // use Microsoft* C complier dependent integer width types \r
+  // use Microsoft* C compiler dependent integer width types\r
   //\r
   typedef unsigned __int64    UINT64;\r
   typedef __int64             INT64;\r
@@ -103,6 +110,12 @@ typedef INT32   INTN;
 ///\r
 #define CPU_STACK_ALIGNMENT  sizeof(UINT64)\r
 \r
+///\r
+/// Page allocation granularity for ARM\r
+///\r
+#define DEFAULT_PAGE_ALLOCATION_GRANULARITY   (0x1000)\r
+#define RUNTIME_PAGE_ALLOCATION_GRANULARITY   (0x1000)\r
+\r
 //\r
 // Modifier to ensure that all protocol member functions and EFI intrinsics\r
 // use the correct C calling convention. All protocol member functions and\r