From b9e721d4e117c27566309872fa10dec339cc6c8c Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Wed, 17 Aug 2016 19:38:04 -0600 Subject: [PATCH] Print out more useful information about AP and BSP, create kmain_ap --- lib.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib.rs b/lib.rs index 61ad13d..c5dbf61 100644 --- a/lib.rs +++ b/lib.rs @@ -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"); } }