2 // Copyright (c) 2016 - 2020, ARM Limited. All rights reserved.
4 // SPDX-License-Identifier: BSD-2-Clause-Patent
11 GCC_ASM_EXPORT(ArmCallSvc)
14 // r0 will be popped just after the SVC call
17 // Load the SVC arguments values into the appropriate registers
21 // Prevent speculative execution beyond svc instruction
25 // Load the ARM_SVC_ARGS structure address from the stack into r8
28 // Load the SVC returned values into the appropriate registers
29 // A SVC call can return up to 4 values - we do not need to store back r4-r7.
34 // Restore the registers r4-r8