audk/MdePkg/Include
Ard Biesheuvel a5274cdc87 Revert "MdePkg/ProcessorBind.h AARCH64: limit MAX_ADDRESS to 48 bits"
This reverts commit 82379bf660.

On AArch64, we can only use 48 address bits while running in UEFI,
while the GCD and UEFI memory maps may describe up to 52 bits of
physical address space. For this reason, MAX_ADDRESS was reduced
to 48 bits, to ensure that the firmware does not inadvertently
attempt to allocate memory that we cannot access.

However, MAX_ADDRESS is used in runtime drivers as well, and
runtime drivers may deal with kernel virtual addresses, which have
bits [63:48] set. In fact, the OS may be running with 64 KB pages
and pass addresses into the runtime services that use up to 52
bits of address space, either with the top bits set or cleared,
even if the physical address space does not extend beyond 48 bits.

In summary, changing MAX_ADDRESS is a mistake, and needs to be
reverted.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
2018-12-07 12:24:19 +01:00
..
AArch64 Revert "MdePkg/ProcessorBind.h AARCH64: limit MAX_ADDRESS to 48 bits" 2018-12-07 12:24:19 +01:00
Arm MdePkg: Disable some Level 4 warnings for VS2017/ARM 2018-02-07 09:49:20 +08:00
Ebc MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
Guid MdePkg Cper.h: Add generic error macros for ARM platform 2018-08-15 09:34:48 -07:00
Ia32 MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
IndustryStandard MdePkg ACPI: fix the typos in Acpi61.h and Acpi62.h 2018-11-27 11:18:28 +08:00
Library MdePkg/BaseLib: Add new AsmLfence API 2018-09-30 13:06:42 +08:00
Pi MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
Ppi MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
Protocol MdePkg: Removing ipf which is no longer supported from edk2. 2018-09-25 23:48:21 +08:00
Uefi MdePkg: Removing ipf which is no longer supported from edk2. 2018-09-25 23:48:21 +08:00
X64 MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
Base.h MdePkg/Base.h: Implement BASE_CR() via OFFSET_OF(). 2018-11-02 22:15:54 +08:00
PiDxe.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
PiMm.h MdePkg: Add new definitions for Management Mode. 2017-08-29 09:37:36 +08:00
PiPei.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
PiSmm.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
Uefi.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00