mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
kernel: allow syscall processing when printing is disabled
Due to a missing comment, syscalls wouldn't work at all when printing was disabled. Fix this. Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
6e312ffc8a
commit
2244a78f16
1 changed files with 2 additions and 3 deletions
|
|
@ -153,12 +153,11 @@ pub extern "C" fn kmain() {
|
|||
|
||||
match pid {
|
||||
Some(pid) => {
|
||||
#[cfg(feature = "debug-print")]
|
||||
// println!("Attempting to switch to PID {}", pid);
|
||||
// #[cfg(feature = "debug-print")]
|
||||
xous_kernel::rsyscall(xous_kernel::SysCall::SwitchTo(pid, 0)).expect("couldn't switch to pid");
|
||||
}
|
||||
None => {
|
||||
#[cfg(feature = "debug-print")]
|
||||
// #[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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue