On 04/09/2018 04:25 PM, Tom Rini wrote:
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 <mpap...@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.
Ah, you're right, I should had spotted that too. Will replace the ARM64
dependendy with ARM_SMCCC and issue another patch.
Thanks
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot