diff --git a/src/lib.rs b/src/lib.rs index 55d3c57baf37b72365202750dd830d6f7c133fe0..f2004927b6ac1aadcd723c706043c556fc7b9427 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -172,6 +172,13 @@ pub extern fn kmain(cpus: usize) { /// This is the main kernel entry point for secondary CPUs #[no_mangle] pub extern fn kmain_ap(id: usize) { + loop { + unsafe { + interrupt::disable(); + interrupt::halt(); + } + } + /* CPU_ID.store(id, Ordering::SeqCst); context::init(); @@ -190,6 +197,7 @@ pub extern fn kmain_ap(id: usize) { } } } + */ } /// Allow exception handlers to send signal to arch-independant kernel