| |||
| Home > Programmer’s Model > Exceptions > Exception entry and exit summary | |||
Table 2.12 summarizes the PC value preserved in the relevant r14 on exception entry and the recommended instruction for exiting the exception handler.
Table 2.12. Exception entry and exit
Exception or entry | Return instruction | Previous state | Notes | |
|---|---|---|---|---|
ARM r14_x | Thumb r14_x | |||
| MOVS PC, R14_svc | PC + 4 | PC+2 | Where the PC is the address
of the |
| MOVS PC, R14_mon | PC + 4 | - | |
| MOVS PC, R14_und | PC + 4 | PC+2 | |
| SUBS PC, R14_abt, #4 | PC + 4 | PC+4 | Where the PC is the address of instruction that had the prefetch abort |
| SUBS PC, R14_fiq, #4 | PC + 4 | PC+4 | Where the PC is the address of the instruction that was not executed because the FIQ or IRQ took priority |
| SUBS PC, R14_irq, #4 | PC + 4 | PC+4 | |
| SUBS PC, R14_abt, #8 | PC + 8 | PC+8 | Where the PC is the address of the load or store instruction that generated the data abort |
| - | - | - | The value saved in r14_svc on reset is Unpredictable |
| SUBS PC, R14_abt, #4 | PC + 4 | PC+4 | Software breakpoint |