Fix shutdown by disabling APs

This commit is contained in:
Jeremy Soller
2017-04-07 21:49:32 -06:00
parent a7f35e14cc
commit b286e69c9d

View File

@@ -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