From 229a5de6ffccf878823e2df388c752f322bc8346 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Fri, 19 Sep 2025 20:30:26 -0600 Subject: [PATCH] Remove INIT_THREAD --- src/main.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 97b6f6dc65..b27993225d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -180,7 +180,6 @@ struct Bootstrap { env: &'static [u8], } static BOOTSTRAP: spin::Once = spin::Once::new(); -static INIT_THREAD: spin::Once>> = spin::Once::new(); /// This is the kernel entry point for the primary CPU. The arch crate is responsible for calling this fn kmain(cpu_count: u32, bootstrap: Bootstrap) -> ! { @@ -214,7 +213,6 @@ fn kmain(cpu_count: u32, bootstrap: Bootstrap) -> ! { context.euid = 0; context.egid = 0; } - INIT_THREAD.call_once(move || context_lock); } Err(err) => { panic!("failed to spawn userspace_init: {:?}", err);