From 2244a78f161af2e129414890ff689a708edc6a20 Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Fri, 30 Oct 2020 20:43:22 +0800 Subject: [PATCH] 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 --- kernel/src/main.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/kernel/src/main.rs b/kernel/src/main.rs index cc53cf062..aa7197438 100644 --- a/kernel/src/main.rs +++ b/kernel/src/main.rs @@ -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() {