ArmMonitorLib.h 926 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /** @file
  2. Copyright (c) 2022, Arm Limited. All rights reserved.<BR>
  3. SPDX-License-Identifier: BSD-2-Clause-Patent
  4. **/
  5. #ifndef ARM_MONITOR_LIB_H_
  6. #define ARM_MONITOR_LIB_H_
  7. /** The size of the SMC arguments is different between AArch64 and AArch32.
  8. The native size is used for the arguments.
  9. It will be casted to either HVC or SMC args.
  10. */
  11. typedef struct {
  12. UINTN Arg0;
  13. UINTN Arg1;
  14. UINTN Arg2;
  15. UINTN Arg3;
  16. UINTN Arg4;
  17. UINTN Arg5;
  18. UINTN Arg6;
  19. UINTN Arg7;
  20. } ARM_MONITOR_ARGS;
  21. /** Monitor call.
  22. An HyperVisor Call (HVC) or System Monitor Call (SMC) will be issued
  23. depending on the default conduit. PcdMonitorConduitHvc determines the type
  24. of the call: if true, do an HVC.
  25. @param [in,out] Args Arguments for the HVC/SMC.
  26. **/
  27. VOID
  28. EFIAPI
  29. ArmMonitorCall (
  30. IN OUT ARM_MONITOR_ARGS *Args
  31. );
  32. #endif // ARM_MONITOR_LIB_H_