From 996996b0a9de14e96bb2081dce0243f1879f2852 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Wed, 17 Aug 2016 19:34:33 -0600 Subject: [PATCH] Keep track of AP count, allocate bigger AP stack, stack trace function --- lib.rs | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/lib.rs b/lib.rs index 0768a61..61ad13d 100644 --- a/lib.rs +++ b/lib.rs @@ -70,7 +70,7 @@ #![feature(question_mark)] #![no_std] -use arch::interrupt::{enable_interrupts, halt}; +use arch::interrupt; /// Architecture specific items (test) #[cfg(test)] @@ -107,17 +107,8 @@ pub mod tests; #[no_mangle] pub extern fn kmain() { - println!("TEST"); - - println!("{:?}", syscall::open(b"debug:", 0)); - println!("{:?}", syscall::open(b"debug:", 0)); - println!("{:?}", syscall::open(b"debug:", 0)); - loop { - unsafe { - enable_interrupts(); - halt(); - } - println!("{:?}", syscall::write(1, b"HALT\n")); + unsafe { interrupt::enable_and_halt(); } + print!("HALT\n"); } }