Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
riscv32: fixed context restore upon exiting ISR
By now, t0 register restored value is overwritten by mepc and mstatus values prior to returning from ISR. Fixed by restoring mstatus and mepc registers before restoring the caller-saved registers. As t0 is a temporary register within the riscv ABI, this issue was unnoticed for most applications, except for computation intensive apps, like crypto tests. Signed-off-by: Jean-Paul Etienne <[email protected]>
- Loading branch information