From 5186594f17d0354d35a7acf5a251b214a4b15f36 Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Wed, 11 Nov 2020 16:22:29 +0800 Subject: [PATCH] kernel: remove excess debug output from hosted mode Signed-off-by: Sean Cross --- kernel/src/arch/hosted.rs | 2 -- kernel/src/arch/hosted/process.rs | 11 ----------- 2 files changed, 13 deletions(-) diff --git a/kernel/src/arch/hosted.rs b/kernel/src/arch/hosted.rs index e49831d73..b34620363 100644 --- a/kernel/src/arch/hosted.rs +++ b/kernel/src/arch/hosted.rs @@ -583,8 +583,6 @@ pub fn idle() -> bool { crate::syscall::handle(pid, thread_id, false, SysCall::TerminateProcess).ok(); }); crate::arch::process::set_current_pid(existing_pid); - // SystemServices::with_mut(|ss| { - // ss.switch_from(pid, 1, true)}).unwrap(); } if is_shutdown { diff --git a/kernel/src/arch/hosted/process.rs b/kernel/src/arch/hosted/process.rs index bf35cea02..1dd8a3331 100644 --- a/kernel/src/arch/hosted/process.rs +++ b/kernel/src/arch/hosted/process.rs @@ -299,21 +299,10 @@ impl Process { if result.memory().is_some() { panic!("Result has memory and we're also returning memory!"); } - // if let xous_kernel::Result::Message(_) = result { - // } else { - // panic!( - // "memory was waiting to be returned, but message was not a result message" - // ); - // } print!(" [adding {} additional bytes from memory being returned]", buf.len()); response.extend_from_slice(&buf); } - // eprintln!( - // "KERNEL({}): Setting thread return value to {:?}", - // current_pid_idx + 1, - // response - // ); print!(" [setting thread return value to {} bytes]", response.len()); process .conn