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

Tom Rini trini at konsulko.com
Mon Apr 9 13:25:31 UTC 2018


On Mon, Apr 09, 2018 at 04:11:01PM +0300, Michalis Pappas 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 can 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..a2b09620f3 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
> +	help
> +	  Allows issuing Hypervisor Calls (HVCs). Mostly useful for
> +	  development and testing.
> +
> +config CMD_SMC
> +	bool "Support the 'smc' command"
> +	depends on ARM64
> +	help
> +	  Allows issuing Secure Monitor Calls (SMCs). Mostly useful for
> +	  development and testing.

Sorry for not catching this before, in both cases we should depend on
ARM_SMCC as that's what provides the underlying functions and is
available on both ARMv7 and ARMv8.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180409/5affe874/attachment.sig>


More information about the U-Boot mailing list