2 // Copyright (c) 2012-2014, ARM Limited. All rights reserved.
3 // Copyright (c) 2014-2016, Linaro Limited. All rights reserved.
5 // SPDX-License-Identifier: BSD-2-Clause-Patent
9 #include <AsmMacroIoLib.h>
15 // r0 will be popped just after the HVC call
18 // Load the HVC arguments values into the appropriate registers
30 // Pop the ARM_HVC_ARGS structure address from the stack into r8
33 // Load the HVC returned values into the appropriate registers
34 // A HVC call can return up to 4 values - we do not need to store back r4-r7.
42 // Restore the registers r4-r8