audk/ArmPkg/Include
Ard Biesheuvel b1bce5e564 ArmPkg/ArmMonitorLib: Implement SMCCC protocol correctly and directly
The SMCCC protocol stipulates the following:
- on AARCH64, 18 arguments can be passed, and 18 values can be returned,
  via registers X0-x17;
- on ARM, 8 arguments can be passed, and 8 values can be returned.

This makes ArmSmcLib and ArmHvcLib as implemented currently unsuitable
for use with SMCCC services in general, although for PSCI in particular,
they work fine.

The dependency on both ArmSmcLib and ArmHvcLib is also impractical
because it requires every platform that consumes ArmMonitorLib to
provide resolutions for each, even though most platforms will only ever
need one of these (and the choice is made at compile time)

So let's drop these dependencies, and re-implement the asm helpers from
scratch. Note that the only difference is the actual instruction used
-HVC vs SMC- and so all other code can be shared.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
2024-07-25 14:41:09 +00:00
..
Guid ArmPkg/CpuDxe: drop ARM_PROCESSOR_TABLE pseudo-ACPI table 2022-07-22 17:10:09 +00:00
IndustryStandard ArmPkg: Apply Uncrustify to Non-Compliant Files 2023-07-03 14:29:32 +00:00
Library ArmPkg/ArmMonitorLib: Implement SMCCC protocol correctly and directly 2024-07-25 14:41:09 +00:00
Ppi ArmPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Protocol ArmPkg/ArmScmiDxe: Add PERFORMANCE_DESCRIBE_FASTCHANNEL support 2024-01-29 16:47:03 +00:00
AsmMacroIoLib.h ArmPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
AsmMacroIoLib.inc
AsmMacroIoLibV8.h ArmPkg/ArmLib ArmMmuLib: Drop support for EL3/MON execution 2024-06-19 17:25:11 +00:00