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>
This commit is contained in:
Ard Biesheuvel 2018-11-27 13:23:35 +01:00
parent 364eed8479
commit 82379bf660
1 changed files with 2 additions and 2 deletions

View File

@ -138,9 +138,9 @@ typedef INT64 INTN;
#define MAX_2_BITS 0xC000000000000000ULL #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. /// Maximum legal AArch64 INTN and UINTN values.