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);