summaryrefslogtreecommitdiff
path: root/BaseTools/Source/Python/Workspace/MetaFileParser.py
diff options
context:
space:
mode:
authorChris Fernald <chfernal@microsoft.com>2026-06-18 22:19:07 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2026-06-20 01:28:07 +0300
commit0abce029801c1b1a2d84ee7c47534e291405b99b (patch)
tree9d1e302d562c13ea9791a8e7c9c08b8bd6885ae8 /BaseTools/Source/Python/Workspace/MetaFileParser.py
parent0573bda1c67e95e105ab721f8c4c3bc04efa0916 (diff)
downloadedk2-0abce029801c1b1a2d84ee7c47534e291405b99b.tar.xz
ArmPkg: Only flush cache for memory that is mapped and intentional
The previous commit to add cache flushing for memory being changed from a cacheable memory to non-cacheable memory did not check if the new memory type would be marked as a valid mapping. Because of this, if the cacheability is changed on memory that has `EFI_MEMORY_RP` set, the flush be VA would still be invoked which would cause a synchronous data abort. Additionally, this commit removes flushing the cache if no attribute was provided by the caller. It have been observed that in some cases, including the core itself, the caller does not provide a cacheability attribute and this code will default to a unused (so device) index. To avoid unexpected behavior, we must ignore this scenario since it is already in err and this shouldn't be made worse. Signed-off-by: Chris Fernald <chfernal@microsoft.com>
Diffstat (limited to 'BaseTools/Source/Python/Workspace/MetaFileParser.py')
0 files changed, 0 insertions, 0 deletions