From 1eb5b4f28b0f0d28ab844b7d444c822f90784978 Mon Sep 17 00:00:00 2001 From: Olivier Martin Date: Tue, 19 Aug 2014 13:36:36 +0000 Subject: ArmPkg/ArmLib: Set again TCR after getting the Translation Table attributes Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin 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 | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ArmPkg') diff --git a/ArmPkg/Library/ArmLib/AArch64/AArch64Mmu.c b/ArmPkg/Library/ArmLib/AArch64/AArch64Mmu.c index fee4cfc4ab..f0d2bff1a3 100644 --- a/ArmPkg/Library/ArmLib/AArch64/AArch64Mmu.c +++ b/ArmPkg/Library/ArmLib/AArch64/AArch64Mmu.c @@ -678,6 +678,9 @@ ArmConfigureMmu ( goto FREE_TRANSLATION_TABLE; } + // Set again TCR after getting the Translation Table attributes + ArmSetTCR (TCR); + ArmSetMAIR (MAIR_ATTR(TT_ATTR_INDX_DEVICE_MEMORY, MAIR_ATTR_DEVICE_MEMORY) | // mapped to EFI_MEMORY_UC MAIR_ATTR(TT_ATTR_INDX_MEMORY_NON_CACHEABLE, MAIR_ATTR_NORMAL_MEMORY_NON_CACHEABLE) | // mapped to EFI_MEMORY_WC MAIR_ATTR(TT_ATTR_INDX_MEMORY_WRITE_THROUGH, MAIR_ATTR_NORMAL_MEMORY_WRITE_THROUGH) | // mapped to EFI_MEMORY_WT -- cgit v1.2.3