forked from M-Labs/zynq-rs
remove unnecessary core1_enabled semaphore
This commit is contained in:
parent
e894f502a4
commit
6d2c26fe73
|
@ -26,9 +26,6 @@ interrupt_handler!(Reset, reset_irq, __stack0_start, __stack1_start, {
|
||||||
boot_core0();
|
boot_core0();
|
||||||
}
|
}
|
||||||
1 => {
|
1 => {
|
||||||
while !CORE1_ENABLED.get() {
|
|
||||||
spin_lock_yield();
|
|
||||||
}
|
|
||||||
boot_core1();
|
boot_core1();
|
||||||
}
|
}
|
||||||
_ => unreachable!(),
|
_ => unreachable!(),
|
||||||
|
@ -128,11 +125,6 @@ impl Core1 {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
unsafe {
|
|
||||||
CORE1_ENABLED.set(true);
|
|
||||||
}
|
|
||||||
// Flush cache-line
|
|
||||||
cache::dcc(unsafe { &CORE1_ENABLED });
|
|
||||||
if sdram {
|
if sdram {
|
||||||
cache::dccmvac(0);
|
cache::dccmvac(0);
|
||||||
asm::dsb();
|
asm::dsb();
|
||||||
|
|
Loading…
Reference in New Issue