From 2bed7c464646e99e3110ea2da43b854f8d1c35ae Mon Sep 17 00:00:00 2001 From: Ville Juven Date: Tue, 19 Mar 2024 14:13:57 +0200 Subject: [PATCH] arm64_mmu: Add data synchronization barrier after page tables are written The page tables must be committed to system memory before we can proceed enabling the MMU. ISB() is not enough to do this. --- arch/arm64/src/common/arm64_mmu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/src/common/arm64_mmu.c b/arch/arm64/src/common/arm64_mmu.c index d4b949bbf9..20e35ea80f 100644 --- a/arch/arm64/src/common/arm64_mmu.c +++ b/arch/arm64/src/common/arm64_mmu.c @@ -536,6 +536,7 @@ static void enable_mmu_el1(unsigned int flags) /* Ensure these changes are seen before MMU is enabled */ + ARM64_DSB(); ARM64_ISB(); /* Enable the MMU and data cache */