rust-embedded / riscv

Low level access to RISC-V processors
841 stars 162 forks source link

`riscv`: ECALL and nested interrupts #169

Closed romancardenas closed 10 months ago

romancardenas commented 10 months ago

This PR adds a wrapper to trigger environment calls. It also adds a new function for allowing nested interrupts in M and S mode. Nested interrupts are specially useful for RTOSs, as they can implement preemption in this way.

romancardenas commented 10 months ago

I think I found a 🐛

@almindor can you take a second look?