mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
add thread reporting to irq entry
This commit is contained in:
parent
870326a497
commit
84ef3ed694
1 changed files with 2 additions and 1 deletions
|
|
@ -200,7 +200,8 @@ 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());
|
||||||
println!("IRQ -- KERNEL({}): RISC-V fault: {}", pid, ex);
|
let tid = ArchProcess::with_current(|p| p.current_tid());
|
||||||
|
println!("IRQ ({}.{}): {}", pid, tid, ex);
|
||||||
}
|
}
|
||||||
match ex {
|
match ex {
|
||||||
// Syscall
|
// Syscall
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue