2 // Copyright (c) 2012-2014, ARM Limited. All rights reserved.
4 // This program and the accompanying materials
5 // are licensed and made available under the terms and conditions of the BSD License
6 // which accompanies this distribution. The full text of the license may be found at
7 // http://opensource.org/licenses/bsd-license.php
9 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
14 #include <AsmMacroIoLibV8.h>
17 // Push x0 on the stack - The stack must always be quad-word aligned
20 // Load the SMC arguments values into the appropriate registers
28 // Pop the ARM_SMC_ARGS structure address from the stack into x9
31 // Store the SMC returned values into the ARM_SMC_ARGS structure.
32 // A SMC call can return up to 4 values - we do not need to store back x4-x7.