2 // Copyright (c) 2016 - 2020, ARM Limited. All rights reserved.
4 // SPDX-License-Identifier: BSD-2-Clause-Patent
9 INCLUDE AsmMacroExport.inc
11 RVCT_ASM_EXPORT ArmCallSvc
12 // r0 will be popped just after the SVC call
15 // Load the SVC arguments values into the appropriate registers
19 // Prevent speculative execution beyond svc instruction
23 // Load the ARM_SVC_ARGS structure address from the stack into r8
26 // Load the SVC returned values into the appropriate registers
27 // A SVC call can return up to 4 values - we do not need to store back r4-r7.
32 // Restore the registers r4-r8