audk/ArmPkg
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
..
Drivers ArmPkg: CpuDxe: Add Memory Attribute Protocol Logging 2024-07-23 03:32:41 +00:00
Filesystem/SemihostFs
Include ArmPkg/ArmMonitorLib: Implement SMCCC protocol correctly and directly 2024-07-25 14:41:09 +00:00
Library ArmPkg/ArmMonitorLib: Implement SMCCC protocol correctly and directly 2024-07-25 14:41:09 +00:00
Universal/Smbios ArmPkg/ProcessorSubClassDxe: Limit values to 0xFF 2024-06-17 12:09:43 +00:00
ArmPkg.ci.yaml ArmPkg: Disable AuditOnly mode for uncrustify 2024-07-24 10:21:47 +00:00
ArmPkg.dec ArmPkg: Convert PcdMonitorConduitHvc to FixedAtBuild 2024-07-25 14:41:09 +00:00
ArmPkg.dsc ArmPkg: Introduce ResetSystemLib implementation based on ArmMonitorLib 2024-07-24 19:58:01 +00:00