summaryrefslogtreecommitdiffstats
path: root/MdePkg
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2018-11-27 13:23:35 +0100
committerArd Biesheuvel <ard.biesheuvel@linaro.org>2018-11-29 18:53:22 +0100
commit82379bf6603274e81604d5a6f6bb14bdde616286 (patch)
tree0a772c5c8e86bd373386f77df92dc68027c7449f /MdePkg
parent364eed8479a34274de4b1f7d61ce65c7571ff55c (diff)
downloadedk2-82379bf6603274e81604d5a6f6bb14bdde616286.tar.gz
edk2-82379bf6603274e81604d5a6f6bb14bdde616286.tar.bz2
edk2-82379bf6603274e81604d5a6f6bb14bdde616286.zip
MdePkg/ProcessorBind.h AARCH64: limit MAX_ADDRESS to 48 bits
AArch64 supports the use of more than 48 bits for physical and/or virtual addressing, but only if the page size is set to 64 KB, which is not supported by UEFI. So redefine MAX_ADDRESS to cover only 48 address bits. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org> Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'MdePkg')
-rw-r--r--MdePkg/Include/AArch64/ProcessorBind.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/MdePkg/Include/AArch64/ProcessorBind.h b/MdePkg/Include/AArch64/ProcessorBind.h
index 968c18f915..dad75df1c5 100644
--- a/MdePkg/Include/AArch64/ProcessorBind.h
+++ b/MdePkg/Include/AArch64/ProcessorBind.h
@@ -138,9 +138,9 @@ typedef INT64 INTN;
#define MAX_2_BITS 0xC000000000000000ULL
///
-/// Maximum legal AARCH64 address
+/// Maximum legal AARCH64 address (48 bits for 4 KB page size)
///
-#define MAX_ADDRESS 0xFFFFFFFFFFFFFFFFULL
+#define MAX_ADDRESS 0xFFFFFFFFFFFFULL
///
/// Maximum legal AArch64 INTN and UINTN values.