summaryrefslogtreecommitdiffstats
path: root/MdePkg/Include/AArch64
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2017-03-03 15:11:31 +0000
committerArd Biesheuvel <ard.biesheuvel@linaro.org>2017-03-06 11:27:00 +0100
commit08855193cafebaa2e071ffb5f083bcb3cb6d4df0 (patch)
treeb9fb61b81e6758f4fb8f14a09ce19e94b175bdf9 /MdePkg/Include/AArch64
parent627dcba3528159dedfb12e846840206c2f83ab32 (diff)
downloadedk2-08855193cafebaa2e071ffb5f083bcb3cb6d4df0.tar.gz
edk2-08855193cafebaa2e071ffb5f083bcb3cb6d4df0.tar.bz2
edk2-08855193cafebaa2e071ffb5f083bcb3cb6d4df0.zip
MdePkg/ProcessorBind: add defines for page allocation granularity
The UEFI spec differs between architectures in the minimum alignment and granularity of page allocations that are visible to the OS as EFI_MEMORY_RUNTIME regions. So define macros that carry these values to the respective ProcessorBind.h header files. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'MdePkg/Include/AArch64')
-rw-r--r--MdePkg/Include/AArch64/ProcessorBind.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/MdePkg/Include/AArch64/ProcessorBind.h b/MdePkg/Include/AArch64/ProcessorBind.h
index f100d96be0..775e7498c5 100644
--- a/MdePkg/Include/AArch64/ProcessorBind.h
+++ b/MdePkg/Include/AArch64/ProcessorBind.h
@@ -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