]> git.proxmox.com Git - mirror_edk2.git/commit
ArmPkg/ArmMmuLib: AARCH64: add support for modifying only permissions
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 15 Feb 2017 17:11:56 +0000 (17:11 +0000)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 21 Feb 2017 17:23:03 +0000 (17:23 +0000)
commite0307a7dad02aa8c0cd8b3b0b9edce8ddb3fef2e
tree8dce6ef07c19a4b4522605c0028213a084c93e64
parent0a9d732c91d99dcd06432722f76b170592b71abc
ArmPkg/ArmMmuLib: AARCH64: add support for modifying only permissions

Since the new DXE page protection for PE/COFF images may invoke
EFI_CPU_ARCH_PROTOCOL.SetMemoryAttributes() with only permission
attributes set, add support for this in the AARCH64 MMU code.

Move the EFI_MEMORY_CACHETYPE_MASK macro to a shared location between
CpuDxe and ArmMmuLib so we don't have to introduce yet another
definition.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
ArmPkg/Drivers/CpuDxe/CpuDxe.h
ArmPkg/Include/Library/ArmLib.h
ArmPkg/Library/ArmMmuLib/AArch64/ArmMmuLibCore.c