Skip to content
Snippets Groups Projects
Commit b286e69c authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Fix shutdown by disabling APs

parent a7f35e14
No related branches found
No related tags found
No related merge requests found
...@@ -172,6 +172,13 @@ pub extern fn kmain(cpus: usize) { ...@@ -172,6 +172,13 @@ pub extern fn kmain(cpus: usize) {
/// This is the main kernel entry point for secondary CPUs /// This is the main kernel entry point for secondary CPUs
#[no_mangle] #[no_mangle]
pub extern fn kmain_ap(id: usize) { pub extern fn kmain_ap(id: usize) {
loop {
unsafe {
interrupt::disable();
interrupt::halt();
}
}
/*
CPU_ID.store(id, Ordering::SeqCst); CPU_ID.store(id, Ordering::SeqCst);
context::init(); context::init();
...@@ -190,6 +197,7 @@ pub extern fn kmain_ap(id: usize) { ...@@ -190,6 +197,7 @@ pub extern fn kmain_ap(id: usize) {
} }
} }
} }
*/
} }
/// Allow exception handlers to send signal to arch-independant kernel /// Allow exception handlers to send signal to arch-independant kernel
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment