diff options
author | Steven Price <steven.price@arm.com> | 2019-10-21 16:28:21 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-03-11 11:22:37 +0100 |
commit | baaaba74e014fcc56185d1780e8f0497539fbb9d (patch) | |
tree | 4a970b6f351b450c5d88e68d5825e9aa8fca089b /include/linux/sunxi-rsb.h | |
parent | 6c1599fd1bf8782f2b368e9eacc55571a7c3dd54 (diff) |
arm/arm64: Provide a wrapper for SMCCC 1.1 calls
commit 541625ac47ce9d0835efaee0fcbaa251b0000a37 upstream.
SMCCC 1.1 calls may use either HVC or SMC depending on the PSCI
conduit. Rather than coding this in every call site, provide a macro
which uses the correct instruction. The macro also handles the case
where no conduit is configured/available returning a not supported error
in res, along with returning the conduit used for the call.
This allow us to remove some duplicated code and will be useful later
when adding paravirtualized time hypervisor calls.
Signed-off-by: Steven Price <steven.price@arm.com>
Acked-by: Will Deacon <will@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/sunxi-rsb.h')
0 files changed, 0 insertions, 0 deletions