[U-Boot] [PATCH] arm64: Add SMC and HVC commands

Simon Glass sjg at chromium.org
Sun Apr 8 13:50:53 UTC 2018


Hi,

On 6 April 2018 at 18:06, Michalis Pappas <mpappas at fastmail.fm> wrote:
> This patch adds smc and hvc commands, that allow issuing Secure Monitor
> Calls and Hypervisor Calls conforming to the ARM SMC Calling Convention.
>
> Add Kconfig items to allow each command to be individually enabled.
>
> Signed-off-by: Michalis Pappas <mpappas at fastmail.fm>
> ---
>
>  cmd/Kconfig  | 14 ++++++++++
>  cmd/Makefile |  2 ++
>  cmd/smccc.c  | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++++
>  3 files changed, 88 insertions(+)
>  create mode 100644 cmd/smccc.c
>
> diff --git a/cmd/Kconfig b/cmd/Kconfig
> index 136836d146..bed6835eca 100644
> --- a/cmd/Kconfig
> +++ b/cmd/Kconfig
> @@ -1348,6 +1348,20 @@ config CMD_HASH
>           saved to memory or to an environment variable. It is also possible
>           to verify a hash against data in memory.
>
> +config CMD_HVC
> +       bool "Support the 'hvc' command"
> +       depends on ARM64
> +       default n
> +       help
> +         Allows issuing Hypervisor Calls (HVCs)

Please expand on this. Why do you want to do this, what sort of things
can you do?

Other than that:

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


More information about the U-Boot mailing list