2 // Copyright (c) 2012-2014, ARM Limited. All rights reserved.
3 // Copyright (c) 2014, Linaro Limited. All rights reserved.
5 // SPDX-License-Identifier: BSD-2-Clause-Patent
10 INCLUDE AsmMacroExport.inc
12 RVCT_ASM_EXPORT ArmCallHvc
14 // r0 will be popped just after the HVC call
17 // Load the HVC arguments values into the appropriate registers
29 // Pop the ARM_HVC_ARGS structure address from the stack into r8
32 // Load the HVC returned values into the appropriate registers
33 // A HVC call can return up to 4 values - we do not need to store back r4-r7.
41 // Restore the registers r4-r8