Improve efficiency of kernel console

This commit is contained in:
Jeremy Soller
2016-09-01 14:39:45 -06:00
parent 5c91017579
commit 4b98fb8ca3

3
lib.rs
View File

@@ -133,6 +133,7 @@ pub extern fn kmain() {
let pid = syscall::getpid();
println!("BSP: {:?}", pid);
/*
if let Ok(_context_lock) = context::contexts_mut().spawn(context_test) {
print!("Spawned context\n");
}
@@ -141,6 +142,8 @@ pub extern fn kmain() {
unsafe { context::switch(); }
print!("Main halt\n");
*/
loop {
unsafe { interrupt::enable_and_halt(); }
}