]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmPkg/ArmLib: Set again TCR after getting the Translation Table attributes
authorOlivier Martin <olivier.martin@arm.com>
Tue, 19 Aug 2014 13:36:36 +0000 (13:36 +0000)
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 19 Aug 2014 13:36:36 +0000 (13:36 +0000)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15837 6f19259b-4bc3-4df7-8a09-765794883524

ArmPkg/Library/ArmLib/AArch64/AArch64Mmu.c

index fee4cfc4abc20f00f867abc1058abbbb4457c46e..f0d2bff1a3a465d3c82a9b2dba354207db4ab8e8 100644 (file)
@@ -678,6 +678,9 @@ ArmConfigureMmu (
     goto FREE_TRANSLATION_TABLE;\r
   }\r
 \r
+  // Set again TCR after getting the Translation Table attributes\r
+  ArmSetTCR (TCR);\r
+\r
   ArmSetMAIR (MAIR_ATTR(TT_ATTR_INDX_DEVICE_MEMORY, MAIR_ATTR_DEVICE_MEMORY) |                      // mapped to EFI_MEMORY_UC\r
               MAIR_ATTR(TT_ATTR_INDX_MEMORY_NON_CACHEABLE, MAIR_ATTR_NORMAL_MEMORY_NON_CACHEABLE) | // mapped to EFI_MEMORY_WC\r
               MAIR_ATTR(TT_ATTR_INDX_MEMORY_WRITE_THROUGH, MAIR_ATTR_NORMAL_MEMORY_WRITE_THROUGH) | // mapped to EFI_MEMORY_WT\r