Skip to content
Snippets Groups Projects
Commit 4b98fb8c authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Improve efficiency of kernel console

parent 5c910175
No related branches found
No related tags found
No related merge requests found
......@@ -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(); }
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment