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 0d995bfb5c
commit 8ddddcec9f
4 changed files with 19 additions and 14 deletions

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