Supervisor Call causes a Supervisor Call exception. For more information, see Supervisor Call (SVC) exception.
SVC was previously called SWI, Software Interrupt, and this name is still found in some documentation.
Software can use this instruction as a call to an operating system to provide a service.
In the following cases, the Supervisor Call exception generated by the SVC instruction is taken to Hyp mode:
- If the SVC is executed in Hyp mode.
- If HCR.TGE is set to 1, and the SVC is executed in Non-secure User mode. For more information, see Supervisor Call exception, when HCR.TGE is set to 1
- If the SVC is unconditional:
- For the T32 instruction, is the zero-extended value of the imm8 field.
- For the A32 instruction, is the least-significant 16 bits the imm24 field.
- If the SVC is conditional, is unknown.
imm32 = ZeroExtend(imm24, 32);
imm32 = ZeroExtend(imm8, 32);