RISC-V ISA Explorer · Interrupts (Sm/Ss)
Smrnmi: Resumable NMI
Ratified 2024-06 · version 1.0.0
Saves the interrupted state in dedicated CSRs so a non-maskable interrupt handler can return with mnret.
Typical use: Restartable non-maskable interrupts
Open Smrnmi in the explorerInstructions (1)
| Mnemonic | Name | Encoding | Match | Mask |
|---|---|---|---|---|
MNRET | Machine mode resume from the RNMI or Double Trap handler | 01110000001000000000000001110011 | 0x70200073 | 0xffffffff |
Control and status registers (4)
| Name | Address | Mode | Description |
|---|---|---|---|
mncause | 0x742 | M | Resumable NMI cause |
mnepc | 0x741 | M | Machine Exception Program Counter |
mnscratch | 0x740 | M | Machine Scratch Register |
mnstatus | 0x744 | M | Machine NMI Status |