3.6.7. Software interrupt

The software interrupt instruction (SWI) is used for entering Supervisor mode, usually to request a particular supervisor function. A SWI handler should return by executing the following irrespective of the state (ARM or THUMB):

MOV PC, R14_svc

This restores the PC and CPSR, and returns to the instruction following the SWI.

Copyright © 1997, 1998 ARM Limited. All rights reserved.DDI 0087E