X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdePkg%2FInclude%2FAArch64%2FProcessorBind.h;h=775e7498c5c9d855a9680f7fc88be248622feaa4;hp=f09b15a55800bf9a17f2bf81a80c0dd2a9e1f996;hb=08855193cafebaa2e071ffb5f083bcb3cb6d4df0;hpb=02eef553114dea1e4d55071e91398a0625e4e18c diff --git a/MdePkg/Include/AArch64/ProcessorBind.h b/MdePkg/Include/AArch64/ProcessorBind.h index f09b15a558..775e7498c5 100644 --- a/MdePkg/Include/AArch64/ProcessorBind.h +++ b/MdePkg/Include/AArch64/ProcessorBind.h @@ -32,7 +32,7 @@ #if _MSC_EXTENSIONS // - // use Microsoft* C complier dependent integer width types + // use Microsoft* C compiler dependent integer width types // typedef unsigned __int64 UINT64; typedef __int64 INT64; @@ -104,6 +104,12 @@ typedef INT64 INTN; /// #define CPU_STACK_ALIGNMENT 16 +/// +/// Page allocation granularity for AARCH64 +/// +#define DEFAULT_PAGE_ALLOCATION_GRANULARITY (0x1000) +#define RUNTIME_PAGE_ALLOCATION_GRANULARITY (0x10000) + // // Modifier to ensure that all protocol member functions and EFI intrinsics // use the correct C calling convention. All protocol member functions and @@ -111,7 +117,9 @@ typedef INT64 INTN; // #define EFIAPI -#if defined(__GNUC__) +// When compiling with Clang, we still use GNU as for the assembler, so we still +// need to define the GCC_ASM* macros. +#if defined(__GNUC__) || defined(__clang__) /// /// For GNU assembly code, .global or .globl can declare global symbols. /// Define this macro to unify the usage.