mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-19 09:00:54 +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 {
|
match pid {
|
||||||
Some(pid) => {
|
Some(pid) => {
|
||||||
// #[cfg(feature = "debug-print")]
|
// #[cfg(feature = "debug-print")]
|
||||||
|
// print!(" [switching to pid {}]", pid);
|
||||||
xous_kernel::rsyscall(xous_kernel::SysCall::SwitchTo(pid, 0)).expect("couldn't switch to pid");
|
xous_kernel::rsyscall(xous_kernel::SysCall::SwitchTo(pid, 0)).expect("couldn't switch to pid");
|
||||||
}
|
}
|
||||||
None => {
|
None => {
|
||||||
// #[cfg(feature = "debug-print")]
|
#[cfg(feature = "debug-print")]
|
||||||
// println!("No runnable tasks found. Entering idle state...");
|
println!("NO RUNNABLE TASKS FOUND, entering idle state");
|
||||||
// Special case for testing: idle can return `false` to indicate exit
|
// Special case for testing: idle can return `false` to indicate exit
|
||||||
if !arch::idle() {
|
if !arch::idle() {
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue