![](/images/backgrounds/120559/120559-377161x1.png)
User’s Manual
IBM PowerPC 750GX and GL RISC Microprocessor
0x000n_nnnn. If IP is set, exceptions are vectored to the physical address 0xFFFn_nnnn. For a machine- check exception that occurs when MSR[ME] = 0
The RI bit in the MSR was designed to indicate to the exception handler whether the exception is recover- able. When an exception occurs, the RI bit is copied from the MSR to SRR1 and cleared in the MSR. All interrupts are disabled except machine checks. If a
•In all exceptions, if SRR1[RI] is cleared, the machine state is not recoverable. If it is set, the exception is recoverable with respect to the processor and all programs.
•Use the
–Point SPRG0 to a
–Save three GPRs in
–Move SPRG0 into one of the GRPs that was saved. This GPR now points to the save area in mem- ory.
–Move the GPRs, SRR0, SRR1,
–Update SPGR0 to point to a new save area.
–Set MSR[RI] to indicate that machine state has been saved. Also set MSR[EE] if you want to re- enable external interrupts.
•When exception processing is complete, clear MSR[EE] and MSR[RI]. Adjust SPRG0 to point to the
The rfi instruction performs context synchronization by allowing
•All previous instructions have completed to a point where they can no longer cause an exception. If a pre- vious instruction causes a
•Previous instructions complete execution in the context (privilege, protection, and address translation) under which they were issued.
•The rfi instruction copies SRR1 bits back into the MSR.
•Instructions fetched after this instruction execute in the context established by this instruction.
•Program execution resumes at the instruction indicated by SRR0
For a complete description of context synchronization, see Chapter 6, “Exceptions,” of the PowerPC Microprocessor Family: The Programming Environments Manual.
gx_04.fm.(1.2) | Exceptions |
March 27, 2006 | Page 161 of 377 |