[PATCH v10 01/10] arm64: smccc: add support for SMCCCv1.2 x0-x17 registers

Simon Glass sjg at chromium.org
Wed Mar 29 22:02:16 CEST 2023


On Wed, 29 Mar 2023 at 05:12, Abdellatif El Khlifi
<abdellatif.elkhlifi at arm.com> wrote:
>
> add support for x0-x17 registers used by the SMC calls
>
> In SMCCC v1.2 [1] arguments are passed in registers x1-x17.
> Results are returned in x0-x17.
>
> This work is inspired from the following kernel commit:
>
> arm64: smccc: Add support for SMCCCv1.2 extended input/output registers
>
> [1]: https://documentation-service.arm.com/static/5f8edaeff86e16515cdbe4c6?token=
>
> Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi at arm.com>
> Reviewed-by: Jens Wiklander <jens.wiklander at linaro.org>
> Cc: Tom Rini <trini at konsulko.com>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Ilias Apalodimas <ilias.apalodimas at linaro.org>
>
> ---
> Changelog:
> ===============
>
> v9:
>
> * update the copyright string
>
> v7:
>
> * improve indentation of ARM_SMCCC_1_2_REGS_Xn_OFFS
>
> v4:
>
> * rename the commit title and improve description
>   new commit title: the current
>
> v3:
>
> * port x0-x17 registers support from linux kernel as defined by SMCCCv1.2
>   commit title:
>       arm64: smccc: add Xn registers support used by SMC calls
>
>  arch/arm/cpu/armv8/smccc-call.S | 57 ++++++++++++++++++++++++++++++++-
>  arch/arm/lib/asm-offsets.c      | 16 +++++++++
>  include/linux/arm-smccc.h       | 45 ++++++++++++++++++++++++++
>  3 files changed, 117 insertions(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list