From: Tom Rini Date: Mon, 9 Apr 2018 09:25:31 -0400 Subject: [U-Boot] [PATCH v2] arm64: Add SMC and HVC commands In-Reply-To: <20180409131101.5626-1-mpappas@fastmail.fm> References: <20180409131101.5626-1-mpappas@fastmail.fm> Message-ID: <20180409132531.GQ10996@bill-the-cat.ec.rr.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > --- > > 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: