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