summaryrefslogtreecommitdiffstats
path: root/ArmPkg/Library
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2015-10-06 12:51:07 +0000
committerabiesheuvel <abiesheuvel@Edk2>2015-10-06 12:51:07 +0000
commit9d636f57f40641dc4d2bb6294e51acc301e58db4 (patch)
tree99d72eefe0b007dd4646b80006da1bb9a25ad610 /ArmPkg/Library
parent63e1c23b225578efdaca714a81055eadb0a07cec (diff)
downloadedk2-9d636f57f40641dc4d2bb6294e51acc301e58db4.tar.gz
edk2-9d636f57f40641dc4d2bb6294e51acc301e58db4.tar.bz2
edk2-9d636f57f40641dc4d2bb6294e51acc301e58db4.zip
ArmPkg/AArch64Mmu: remove cache maintenance for page tables
All our page tables are allocated from memory whose cacheability attributes are inherited by the cacheability bits in the MMU control register, so there is no need for explicit cache maintenance after updating the page tables. And even if there were, Set/Way operations are not appropriate anyway for ensuring that these changes make it to main memory. So just remove the explicit cache maintenance completely. 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@18570 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ArmPkg/Library')
-rw-r--r--ArmPkg/Library/ArmLib/AArch64/AArch64Mmu.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/ArmPkg/Library/ArmLib/AArch64/AArch64Mmu.c b/ArmPkg/Library/ArmLib/AArch64/AArch64Mmu.c
index b2ab5aa7bb..3765d61ccd 100644
--- a/ArmPkg/Library/ArmLib/AArch64/AArch64Mmu.c
+++ b/ArmPkg/Library/ArmLib/AArch64/AArch64Mmu.c
@@ -493,12 +493,6 @@ SetMemoryAttributes (
return Status;
}
- // Flush d-cache so descriptors make it back to uncached memory for subsequent table walks
- // flush and invalidate pages
- ArmCleanInvalidateDataCache ();
-
- ArmInvalidateInstructionCache ();
-
// Invalidate all TLB entries so changes are synced
ArmInvalidateTlb ();