From fa3fe497e13a29b596ed243edb38d03f4f5d07ca Mon Sep 17 00:00:00 2001 From: Simon Renblad Date: Mon, 18 Nov 2024 17:38:30 +0800 Subject: [PATCH] fix mmu table uninitialized on core1 --- libsupport_zynq/src/boot.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libsupport_zynq/src/boot.rs b/libsupport_zynq/src/boot.rs index 3b52934..e4e076f 100644 --- a/libsupport_zynq/src/boot.rs +++ b/libsupport_zynq/src/boot.rs @@ -69,7 +69,8 @@ unsafe extern "C" fn boot_core1() -> ! { let mpcore = mpcore::RegisterBlock::mpcore(); mpcore.scu_invalidate.invalidate_core1(); - let mmu_table = mmu::L1Table::get(); + let mmu_table = mmu::L1Table::get() + .setup_flat_layout(); mmu::with_mmu(mmu_table, || { ACTLR.enable_smp(); ACTLR.enable_prefetch();