audk/ArmPkg/Library/ArmLib
Ard Biesheuvel 469e1e1e42 ArmPkg/ArmLib: avoid cache maintenance in PEIMs when executing in place
On some platforms, performing cache maintenance on regions that are backed
by NOR flash result in SErrors. Since cache maintenance is unnecessary in
that case, create a PEIM specific version that only performs said cache
maintenance in its constructor if the module is shadowed in RAM. To avoid
performing the cache maintenance if the MMU code is not used to begin with,
check that explicitly in the constructor.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Tested-by: Heyi Guo <heyi.guo@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2016-06-15 17:23:09 +02:00
..
AArch64 ArmPkg/ArmLib: avoid cache maintenance in PEIMs when executing in place 2016-06-15 17:23:09 +02:00
ArmV7 ArmPkg/ArmLib: don't invalidate entire I-cache on range operation 2016-05-12 13:53:08 +02:00
Common ArmPkg: Configure TTBCR register 2016-03-03 18:23:54 +00:00
Null ArmPkg/ArmLib: remove CCSIDR based cache info routines 2015-11-09 13:26:32 +00:00