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

Specification

Open Smrnmi in the explorer

Instructions (1)

MnemonicNameEncodingMatchMask
MNRETMachine mode resume from the RNMI or Double Trap handler011100000010000000000000011100110x702000730xffffffff

Control and status registers (4)

NameAddressModeDescription
mncause0x742MResumable NMI cause
mnepc0x741MMachine Exception Program Counter
mnscratch0x740MMachine Scratch Register
mnstatus0x744MMachine NMI Status