From d87b59d47c317c8f691b1da8a7783ba297798abf Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Sun, 30 Aug 2020 00:35:28 +0800 Subject: [PATCH] kernel: riscv: print fewer debug messages The IRQ handler was very noisy, which generated a lot of spew. Signed-off-by: Sean Cross --- kernel/src/arch/riscv/irq.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/kernel/src/arch/riscv/irq.rs b/kernel/src/arch/riscv/irq.rs index 866bae001..ff910ba2b 100644 --- a/kernel/src/arch/riscv/irq.rs +++ b/kernel/src/arch/riscv/irq.rs @@ -107,7 +107,7 @@ pub extern "C" fn trap_handler( if response == xous_kernel::Result::ResumeProcess { crate::arch::syscall::resume(current_pid().get() == 1, thread); } else { - println!("Returning to address {:08x}", thread.sepc); + // println!("Returning to address {:08x}", thread.sepc); unsafe { _xous_syscall_return_result(&response, thread) }; } }); @@ -176,10 +176,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) @@ -210,9 +210,9 @@ pub extern "C" fn trap_handler( if PREVIOUS_PAIR.is_none() { let tid = crate::arch::process::current_tid(); PREVIOUS_PAIR = Some((pid, tid)); - println!("ISR: Setting previous pair to ({}, {})", pid, tid); - } else { - println!("ISR: Previous pair is not None"); + // println!("ISR: Setting previous pair to ({}, {})", pid, tid); + // } else { + // println!("ISR: Previous pair is not None"); } } crate::irq::handle(irqs_pending).expect("Couldn't handle IRQ");