diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2017-03-21 08:47:23 +0000 |
---|---|---|
committer | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2017-03-21 10:41:12 +0000 |
commit | 60bd1e1269ff93390a90014144a835ad71fe2fa0 (patch) | |
tree | 9b3a2df0416d5a8df29def78192158a92b988768 /BaseTools/Source/Python/Common | |
parent | 09da11081915dea25d2d1bba87cdf460102e52bb (diff) | |
download | edk2-60bd1e1269ff93390a90014144a835ad71fe2fa0.tar.gz edk2-60bd1e1269ff93390a90014144a835ad71fe2fa0.tar.bz2 edk2-60bd1e1269ff93390a90014144a835ad71fe2fa0.zip |
ArmVirtPkg/HighMemDxe: use CPU arch protocol to apply memprotect policy
Instead of invoking gDS->SetMemorySpaceAttributes to set the EFI_MEMORY_XP
attribute on newly added regions, which is guaranteed to fail if the same
attribute was not declared as a capability of the region when it as added,
invoke the CPU arch protocol directly to set the EFI_MEMORY_XP attribute
if our memory protection policy demands it.
Reported-by: Michael Zimmermann <sigmaepsilon92@gmail.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'BaseTools/Source/Python/Common')
0 files changed, 0 insertions, 0 deletions