mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-17 18:54:26 +02:00
https://bugzilla.tianocore.org/show_bug.cgi?id=1373 Replace BSD 2-Clause License with BSD+Patent License. This change is based on the following emails: https://lists.01.org/pipermail/edk2-devel/2019-February/036260.html https://lists.01.org/pipermail/edk2-devel/2018-October/030385.html RFCs with detailed process for the license change: V3: https://lists.01.org/pipermail/edk2-devel/2019-March/038116.html V2: https://lists.01.org/pipermail/edk2-devel/2019-March/037669.html V1: https://lists.01.org/pipermail/edk2-devel/2019-March/037500.html Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
41 lines
775 B
C
41 lines
775 B
C
/** @file
|
|
*
|
|
* Copyright (c) 2012-2014, ARM Limited. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
*
|
|
**/
|
|
|
|
#ifndef __ARM_HVC_LIB__
|
|
#define __ARM_HVC_LIB__
|
|
|
|
/**
|
|
* The size of the HVC arguments are different between AArch64 and AArch32.
|
|
* The native size is used for the arguments.
|
|
*/
|
|
typedef struct {
|
|
UINTN Arg0;
|
|
UINTN Arg1;
|
|
UINTN Arg2;
|
|
UINTN Arg3;
|
|
UINTN Arg4;
|
|
UINTN Arg5;
|
|
UINTN Arg6;
|
|
UINTN Arg7;
|
|
} ARM_HVC_ARGS;
|
|
|
|
/**
|
|
Trigger an HVC call
|
|
|
|
HVC calls can take up to 8 arguments and return up to 4 return values.
|
|
Therefore, the 4 first fields in the ARM_HVC_ARGS structure are used
|
|
for both input and output values.
|
|
|
|
**/
|
|
VOID
|
|
ArmCallHvc (
|
|
IN OUT ARM_HVC_ARGS *Args
|
|
);
|
|
|
|
#endif
|