From 6d2c26fe736b54872ffc10d018703db492eab326 Mon Sep 17 00:00:00 2001 From: Simon Renblad Date: Mon, 18 Nov 2024 10:15:33 +0800 Subject: [PATCH] remove unnecessary core1_enabled semaphore --- libsupport_zynq/src/boot.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/libsupport_zynq/src/boot.rs b/libsupport_zynq/src/boot.rs index 3b52934..64c0e7e 100644 --- a/libsupport_zynq/src/boot.rs +++ b/libsupport_zynq/src/boot.rs @@ -26,9 +26,6 @@ interrupt_handler!(Reset, reset_irq, __stack0_start, __stack1_start, { boot_core0(); } 1 => { - while !CORE1_ENABLED.get() { - spin_lock_yield(); - } boot_core1(); } _ => unreachable!(), @@ -128,11 +125,6 @@ impl Core1 { } } - unsafe { - CORE1_ENABLED.set(true); - } - // Flush cache-line - cache::dcc(unsafe { &CORE1_ENABLED }); if sdram { cache::dccmvac(0); asm::dsb();