forked from M-Labs/zynq-rs
1
0
Fork 0

libsupport_zynq/boot: fixed core1 disable.

This commit is contained in:
pca006132 2020-07-28 11:40:20 +08:00
parent c50e72f91e
commit ad47521e4b
1 changed files with 2 additions and 0 deletions

View File

@ -149,6 +149,8 @@ impl Core1 {
pub fn disable(&self) { pub fn disable(&self) {
unsafe { unsafe {
CORE1_ENABLED.set(false); CORE1_ENABLED.set(false);
cache::dccmvac(&CORE1_ENABLED as *const _ as usize);
asm::dsb();
} }
self.restart(); self.restart();
} }