From ad47521e4b79ffffe9c815b43104208e3761b860 Mon Sep 17 00:00:00 2001 From: pca006132 Date: Tue, 28 Jul 2020 11:40:20 +0800 Subject: [PATCH] libsupport_zynq/boot: fixed core1 disable. --- libsupport_zynq/src/boot.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libsupport_zynq/src/boot.rs b/libsupport_zynq/src/boot.rs index 649cc12..6960859 100644 --- a/libsupport_zynq/src/boot.rs +++ b/libsupport_zynq/src/boot.rs @@ -149,6 +149,8 @@ impl Core1 { pub fn disable(&self) { unsafe { CORE1_ENABLED.set(false); + cache::dccmvac(&CORE1_ENABLED as *const _ as usize); + asm::dsb(); } self.restart(); }