mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-17 08:40:52 +00:00
more debug tweaking in irq reporting
This commit is contained in:
parent
40a2a2d76d
commit
010bdd0180
1 changed files with 11 additions and 3 deletions
|
|
@ -201,7 +201,14 @@ pub extern "C" fn trap_handler(
|
||||||
let pid = current_pid();
|
let pid = current_pid();
|
||||||
let ex = RiscvException::from_regs(sc.bits(), sepc::read(), stval::read());
|
let ex = RiscvException::from_regs(sc.bits(), sepc::read(), stval::read());
|
||||||
let tid = ArchProcess::with_current(|p| p.current_tid());
|
let tid = ArchProcess::with_current(|p| p.current_tid());
|
||||||
println!("IRQ ({}.{}): {}", pid, tid, ex);
|
println!(
|
||||||
|
"IRQ ({}.{}): {} sepc {:x}", // reg {:08x?}
|
||||||
|
pid,
|
||||||
|
tid,
|
||||||
|
ex,
|
||||||
|
sepc::read(),
|
||||||
|
// ArchProcess::with_current(|p| p.current_thread().registers)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
match ex {
|
match ex {
|
||||||
// Syscall
|
// Syscall
|
||||||
|
|
@ -385,9 +392,10 @@ pub extern "C" fn trap_handler(
|
||||||
let thread = p.current_thread();
|
let thread = p.current_thread();
|
||||||
#[cfg(feature = "debug-swap-verbose")]
|
#[cfg(feature = "debug-swap-verbose")]
|
||||||
println!(
|
println!(
|
||||||
"Swapper syscall returning to address {:08x} in pid {}",
|
"Swapper syscall returning to address {:08x} in pid {}.{}",
|
||||||
thread.sepc,
|
thread.sepc,
|
||||||
p.pid().get()
|
p.pid().get(),
|
||||||
|
p.current_tid(),
|
||||||
);
|
);
|
||||||
// re-enable IRQs as late as possible
|
// re-enable IRQs as late as possible
|
||||||
enable_all_irqs();
|
enable_all_irqs();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue