diff options
author | Himbeer <himbeer@disroot.org> | 2024-05-11 20:00:38 +0200 |
---|---|---|
committer | Himbeer <himbeer@disroot.org> | 2024-05-11 20:00:38 +0200 |
commit | 5986745bf0a9712b18643cfa41e4c33c9ee30a7f (patch) | |
tree | 4af426e068b6ea79d1e6e6ab50906cf8cd4cff62 | |
parent | 0005944f4b3a6f1a9a92c16c9ffe7435e1bdf095 (diff) |
interrupts: Print EPC on unhandled synchronous interrupts
-rw-r--r-- | src/interrupts.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interrupts.zig b/src/interrupts.zig index 6983517..4f72d91 100644 --- a/src/interrupts.zig +++ b/src/interrupts.zig @@ -145,7 +145,7 @@ export fn supervisor_trap(epc: usize, tval: usize, cause_bits: usize, hart_id: u return epc + 4; }, else => { - w.print("Hart {d}: Unhandled synchronous interrupt: {d}\r\n", .{ hart_id, cause.num }) catch while (true) {}; + w.print("Hart {d}: Unhandled synchronous interrupt: {d}, EPC = 0x{x:0>16}\r\n", .{ hart_id, cause.num, epc }) catch while (true) {}; while (true) {} }, } |