2 // Copyright (c) 2012-2014, ARM Limited. All rights reserved.
4 // SPDX-License-Identifier: BSD-2-Clause-Patent
8 #include <AsmMacroIoLib.h>
14 // r0 will be popped just after the SMC call
17 // Load the SMC arguments values into the appropriate registers
29 // Pop the ARM_SMC_ARGS structure address from the stack into r8
32 // Load the SMC returned values into the appropriate registers
33 // A SMC call can return up to 4 values - we do not need to store back r4-r7.
41 // Restore the registers r4-r8