diff --git a/kernel/src/arch/riscv/irq.rs b/kernel/src/arch/riscv/irq.rs index ae07ce1a9..3769e6d82 100644 --- a/kernel/src/arch/riscv/irq.rs +++ b/kernel/src/arch/riscv/irq.rs @@ -203,10 +203,10 @@ pub extern "C" fn trap_handler( .take() .expect("got an instruction page fault with no previous PID") }; - println!( - "ISR: Resuming previous pair of ({}, {})", - previous_pid, previous_context - ); + // println!( + // "ISR: Resuming previous pair of ({}, {})", + // previous_pid, previous_context + // ); // Switch to the previous process' address space. SystemServices::with_mut(|ss| { ss.finish_callback_and_resume(previous_pid, previous_context) @@ -231,7 +231,7 @@ pub extern "C" fn trap_handler( loop {} } else { let irqs_pending = sip::read(); - println!("irqs: {:x}", irqs_pending); + // println!("irqs: {:x}", irqs_pending); // Safe to access globals since interrupts are disabled // when this function runs. diff --git a/kernel/src/arch/x86_64.rs b/kernel/src/arch/x86_64.rs index 662ee7d46..4e6c17ef7 100644 --- a/kernel/src/arch/x86_64.rs +++ b/kernel/src/arch/x86_64.rs @@ -27,7 +27,7 @@ pub fn current_pid() -> PID { unimplemented!(); } -pub fn init(resume: bool) {} +pub fn init() {} pub mod syscall { use crate::arch::Context; diff --git a/kernel/src/main.rs b/kernel/src/main.rs index 112046596..16bebe099 100644 --- a/kernel/src/main.rs +++ b/kernel/src/main.rs @@ -156,8 +156,7 @@ pub extern "C" fn kmain() { match pid { Some(pid) => { - // #[cfg(feature = "debug-print")] - // klog!("switching to pid {}", pid); + #[cfg(feature = "debug-print")] println!("switching to pid {}", pid); xous_kernel::rsyscall(xous_kernel::SysCall::SwitchTo(pid, 0)) .expect("couldn't switch to pid"); diff --git a/kernel/src/services.rs b/kernel/src/services.rs index 28d03a6c5..4900be416 100644 --- a/kernel/src/services.rs +++ b/kernel/src/services.rs @@ -532,7 +532,6 @@ impl SystemServices { // Activate the current context arch_process.set_thread(arch::process::IRQ_TID).unwrap(); - // println!("Invoking..."); // Construct the new frame arch::syscall::invoke( arch_process.current_thread_mut(),