mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
kernel: print message when idling
Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
fc9f597092
commit
aee42bf264
1 changed files with 3 additions and 2 deletions
|
|
@ -154,11 +154,12 @@ pub extern "C" fn kmain() {
|
|||
match pid {
|
||||
Some(pid) => {
|
||||
// #[cfg(feature = "debug-print")]
|
||||
// print!(" [switching to pid {}]", pid);
|
||||
xous_kernel::rsyscall(xous_kernel::SysCall::SwitchTo(pid, 0)).expect("couldn't switch to pid");
|
||||
}
|
||||
None => {
|
||||
// #[cfg(feature = "debug-print")]
|
||||
// println!("No runnable tasks found. Entering idle state...");
|
||||
#[cfg(feature = "debug-print")]
|
||||
println!("NO RUNNABLE TASKS FOUND, entering idle state");
|
||||
// Special case for testing: idle can return `false` to indicate exit
|
||||
if !arch::idle() {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue