mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +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 {
|
if response == xous_kernel::Result::ResumeProcess {
|
||||||
crate::arch::syscall::resume(current_pid().get() == 1, thread);
|
crate::arch::syscall::resume(current_pid().get() == 1, thread);
|
||||||
} else {
|
} else {
|
||||||
println!("Returning to address {:08x}", thread.sepc);
|
// println!("Returning to address {:08x}", thread.sepc);
|
||||||
unsafe { _xous_syscall_return_result(&response, thread) };
|
unsafe { _xous_syscall_return_result(&response, thread) };
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
@ -176,10 +176,10 @@ pub extern "C" fn trap_handler(
|
||||||
.take()
|
.take()
|
||||||
.expect("got an instruction page fault with no previous PID")
|
.expect("got an instruction page fault with no previous PID")
|
||||||
};
|
};
|
||||||
println!(
|
// println!(
|
||||||
"ISR: Resuming previous pair of ({}, {})",
|
// "ISR: Resuming previous pair of ({}, {})",
|
||||||
previous_pid, previous_context
|
// previous_pid, previous_context
|
||||||
);
|
// );
|
||||||
// Switch to the previous process' address space.
|
// Switch to the previous process' address space.
|
||||||
SystemServices::with_mut(|ss| {
|
SystemServices::with_mut(|ss| {
|
||||||
ss.finish_callback_and_resume(previous_pid, previous_context)
|
ss.finish_callback_and_resume(previous_pid, previous_context)
|
||||||
|
|
@ -210,9 +210,9 @@ pub extern "C" fn trap_handler(
|
||||||
if PREVIOUS_PAIR.is_none() {
|
if PREVIOUS_PAIR.is_none() {
|
||||||
let tid = crate::arch::process::current_tid();
|
let tid = crate::arch::process::current_tid();
|
||||||
PREVIOUS_PAIR = Some((pid, tid));
|
PREVIOUS_PAIR = Some((pid, tid));
|
||||||
println!("ISR: Setting previous pair to ({}, {})", pid, tid);
|
// println!("ISR: Setting previous pair to ({}, {})", pid, tid);
|
||||||
} else {
|
// } else {
|
||||||
println!("ISR: Previous pair is not None");
|
// println!("ISR: Previous pair is not None");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
crate::irq::handle(irqs_pending).expect("Couldn't handle IRQ");
|
crate::irq::handle(irqs_pending).expect("Couldn't handle IRQ");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue