Resumable Non-Maskable Interrupts
Type: privileged
| Version | State | Ratified |
|---|---|---|
| 1.0.0 | ratified | 2024-06 |
The base machine-level architecture supports only unresumable non-maskable interrupts (UNMIs), where the NMI jumps to a handler in machine mode, overwriting the current `mepc` and `mcause` register values. If the hart had been executing machine-mode code in a trap handler, the previous values in `mepc` and `mcause` would not be recoverable and so execution is not generally resumable.
The `Smrnmi` extension adds support for resumable non-maskable interrupts (RNMIs) to RISC-V. The extension adds four new CSRs (`mnepc`, `mncause`, `mnstatus`, and `mnscratch`) to hold the interrupted state, and one new instruction, `mnret`, to resume from the RNMI handler.
mnret — Machine mode resume from the RNMI or Double Trap handlermncause — Resumable NMI causemnepc — Machine Exception Program Countermnscratch — Machine Scratch Registermnstatus — Machine NMI StatusVersion af3eaf9+cheriot.f635218
Data from the RISC-V Unified Database, copyright RISC-V International and contributors.
CHERIoT extensions from the CHERIoT specification and Sail model, copyright Microsoft and the CHERIoT Platform contributors.
This site is provided as a community resource and is NOT affiliated with nor endorsed by RISC-V International.