audk/ArmPkg
Ard Biesheuvel 66509f90fc ArmPkg/ArmMmuLib ARM: trim high memory regions instead of rejecting them
ArmSetMemoryAttributes() still chokes in some cases, i.e., when the
length of the region exceeds 4 GB, the subtraction overflows, which
results in the region being misidentified as being 32-bit addressable.

Let's update the logic to trim the length to what we can address with
32 bits. This fixes the issue, and also deals with the issue where an
entire region is disregarded if part of it exceeds beyond what we can
map with 32 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>
2019-01-28 20:01:45 +01:00
..
Drivers ArmPkg/ArmScmiDxe: Add clock enable function 2018-12-21 18:30:46 +01:00
Filesystem/SemihostFs ArmPkg/SemihostFs: eliminate calls to deprecated string functions 2016-10-28 12:04:04 +01:00
Include ArmPkg: delete unused ArmTrustZoneSmc.h 2019-01-21 16:47:18 +00:00
Library ArmPkg/ArmMmuLib ARM: trim high memory regions instead of rejecting them 2019-01-28 20:01:45 +01:00
ArmPkg.dec ArmPkg/ArmScmiDxe: Add clock enable function 2018-12-21 18:30:46 +01:00
ArmPkg.dsc ArmPkg/DefaultExceptionHandlerLib: drop BASE variant 2019-01-16 20:30:14 +01:00