]> git.proxmox.com Git - mirror_edk2.git/commit - ArmPkg/Include/Chipset/ArmV7Mmu.h
ArmPkg/ArmLib: mark all cached mappings as (inner) shareable
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 12 Nov 2015 11:40:57 +0000 (11:40 +0000)
committerabiesheuvel <abiesheuvel@Edk2>
Thu, 12 Nov 2015 11:40:57 +0000 (11:40 +0000)
commit0c9a522f28772049ae37c85b8ae589a98d2d3b81
tree3b39f63cdbe3062f94c4a2e6fafbb98ff894c54c
parent83586b5d50f10a57d02233c066a92cb88718f5a1
ArmPkg/ArmLib: mark all cached mappings as (inner) shareable

Mark all cached memory mappings as shareable (or inner shareable on
AArch64) so that our view of memory is kept coherent by the hardware.

This is relevant for things like coherent DMA and virtualization (where
a guest may migrate to another core) but in general, since UEFI on ARM
is mostly used in a context where the secure firmware and possibly a
secure OS are already up and running, it is best to refrain from using
any non-shareable mappings.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18778 6f19259b-4bc3-4df7-8a09-765794883524
ArmPkg/Include/Chipset/AArch64Mmu.h
ArmPkg/Include/Chipset/ArmV7Mmu.h
ArmPkg/Library/ArmLib/AArch64/AArch64Mmu.c