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:
Sean Cross 2020-10-30 20:43:22 +08:00
parent 6e312ffc8a
commit 2244a78f16

View file

@ -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() {