2 // Copyright (c) 2012-2014, ARM Limited. All rights reserved.
4 // SPDX-License-Identifier: BSD-2-Clause-Patent
9 INCLUDE AsmMacroExport.inc
11 RVCT_ASM_EXPORT ArmCallSmc
13 // r0 will be popped just after the SMC call
16 // Load the SMC arguments values into the appropriate registers
28 // Pop the ARM_SMC_ARGS structure address from the stack into r8
31 // Load the SMC returned values into the appropriate registers
32 // A SMC call can return up to 4 values - we do not need to store back r4-r7.
40 // Restore the registers r4-r8