mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
kernel: riscv: print fewer debug messages
The IRQ handler was very noisy, which generated a lot of spew. Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
9af28d0a90
commit
d87b59d47c
1 changed files with 8 additions and 8 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue