]> git.proxmox.com Git - mirror_edk2.git/commit - ArmPkg/Include/Library/ArmLib.h
ArmPkg/ArmLib: don't invalidate entire I-cache on range operation
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 11 May 2016 08:38:47 +0000 (10:38 +0200)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 12 May 2016 11:53:08 +0000 (13:53 +0200)
commitcf580da1bc4c16026cb1732f741a892b2d3d3d67
treed4b3b771dbfb0914e8af897c27b3c8668084e185
parent14b2ebc30c8bc98f668fa78171b659e2cdc33aa5
ArmPkg/ArmLib: don't invalidate entire I-cache on range operation

Instead of cleaning the data cache to the PoU by virtual address and
subsequently invalidating the entire I-cache, invalidate only the
range that we just cleaned. This way, we don't invalidate other
cachelines unnecessarily.

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/Include/Library/ArmLib.h
ArmPkg/Library/ArmCacheMaintenanceLib/ArmCacheMaintenanceLib.c
ArmPkg/Library/ArmLib/AArch64/AArch64Support.S
ArmPkg/Library/ArmLib/ArmV7/ArmV7Support.S
ArmPkg/Library/ArmLib/ArmV7/ArmV7Support.asm