diff --git a/esp-hal-common/src/interrupt/riscv.rs b/esp-hal-common/src/interrupt/riscv.rs index 8568e53b1..c7b1b622b 100644 --- a/esp-hal-common/src/interrupt/riscv.rs +++ b/esp-hal-common/src/interrupt/riscv.rs @@ -535,7 +535,7 @@ unsafe fn handle_exception(_pc: usize, trap_frame: *mut TrapFrame) { (*trap_frame).t4 = frame[29]; (*trap_frame).t5 = frame[30]; (*trap_frame).t6 = frame[31]; - (*trap_frame).pc = pc + 4; + (*trap_frame).pc = _pc + 4; return; }