Improve efficiency of kernel console

This commit is contained in:
Jeremy Soller 2016-09-01 14:39:45 -06:00
parent 04f6e7b558
commit 0ccfd2125a
7 changed files with 98 additions and 52 deletions

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