]> git.proxmox.com Git - mirror_edk2.git/commit - ArmPkg/Library/ArmLib/Arm/ArmV7Lib.c
ArmPkg/ArmLib: ASSERT on set/way cache ops being used with MMU on
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 26 Feb 2020 13:07:32 +0000 (14:07 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 5 Mar 2020 21:08:30 +0000 (21:08 +0000)
commita2ab46adbc6184248878eba3e3c479a3f253ba27
tree74f054e6734d6dd66025ddb9adfbe6d166015d48
parent806d1be6a73acb1567812213500bc9bd01ff4767
ArmPkg/ArmLib: ASSERT on set/way cache ops being used with MMU on

On ARMv7 and up, doing cache maintenance by set/way is only
permitted in the context of on/offlining a core, and any other
uses should be avoided. Add ASSERT()s in the right place to
ensure that any uses with the MMU enabled are caught in DEBUG
builds.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif@nuviainc.com>
ArmPkg/Library/ArmLib/AArch64/AArch64Lib.c
ArmPkg/Library/ArmLib/Arm/ArmV7Lib.c
ArmPkg/Library/ArmLib/ArmBaseLib.inf