HomeFreeBSD

dev/psci: Create macros to simplify calling SMCCC

Description

dev/psci: Create macros to simplify calling SMCCC

When calling into SMCCC functions we often only need a few arguments.
As the current function needs all 8 possible arguments to be set the
unused values will be zero.

Create a macro to pass in the used values, followed by enough zeros,
then the result pointer.

Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D46986

(cherry picked from commit e4c3536138f4a314dc26331b0a1488faae09aaf4)

Details

Provenance
andrewAuthored on Mon, Oct 14, 2:33 PM
Differential Revision
D46986: dev/psci: Create macros to simplify calling SMCCC
Parents
rGc0de8718a5c1: arm64: Support HWCAP2_AFP and HWCAP2_RPRES
Branches
Unknown
Tags
Unknown