rfid
Return From Interrupt Doubleword
Returns from an interrupt handler. Restores PC from SRR0 and MSR from SRR1.
Details
Returns from an interrupt handler by restoring the Program Counter from SRR0 and the Machine State Register from SRR1. This is a privileged instruction that must be executed in Hypervisor or privileged state. Execution continues at the address loaded from SRR0 with the MSR value from SRR1, enabling recovery from exceptions and context restoration. No condition or status registers are affected; the entire processor state is restored from the saved registers.
Pseudocode Operation
CIA ← SRR0; MSR ← SRR1; context is fully restored
Programming Note
If this instruction sets MSRPR to 1, it also sets MSREE, MSRIR, and MSRDR to 1. If this instruction results in MSRS HV PR being equal to 0b110, it also sets MSRIR and MSRDR to 0.
Example
// Exit Kernel Mode.