Print out more useful information about AP and BSP, create kmain_ap
This commit is contained in:
parent
0d995bfb5c
commit
8ddddcec9f
4 changed files with 19 additions and 14 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue