Print out more useful information about AP and BSP, create kmain_ap

This commit is contained in:
Jeremy Soller
2016-08-17 19:38:04 -06:00
parent 996996b0a9
commit b9e721d4e1

10
lib.rs
View File

@@ -109,6 +109,14 @@ pub mod tests;
pub extern fn kmain() {
loop {
unsafe { interrupt::enable_and_halt(); }
print!("HALT\n");
print!("INT BSP\n");
}
}
#[no_mangle]
pub extern fn kmain_ap() {
loop {
unsafe { interrupt::enable_and_halt() }
print!("INT AP\n");
}
}