Re: [PATCH v6 1/6] arm/arm64: add smccc

2015-11-02 Thread Will Deacon
On Mon, Nov 02, 2015 at 02:03:13PM +, Mark Rutland wrote: > > > > +/** > > > > + * struct smccc_res - Result from SMC/HVC call > > > > + * @a0-a3 result values from registers 0 to 3 > > > > + */ > > > > +struct smccc_res { > > > > + unsigned long a0; > > > > + unsigned long a1; > >

Re: [PATCH v6 1/6] arm/arm64: add smccc

2015-11-02 Thread Mark Rutland
> > > +/* > > > + * void smccc_smc(unsigned long a0, unsigned long a1, unsigned long a2, > > > + * unsigned long a3, unsigned long a4, unsigned long a5, > > > + * unsigned long a6, unsigned long a7, struct smccc_res > > > *res) > > > + */ > > > +ENTRY(smccc_smc) > >

Re: [PATCH v6 1/6] arm/arm64: add smccc

2015-11-02 Thread Jens Wiklander
On Mon, Nov 02, 2015 at 11:51:19AM +, Will Deacon wrote: > Hi Jens, > > On Thu, Oct 29, 2015 at 09:21:23AM +0100, Jens Wiklander wrote: > > Adds helpers to do SMC and HVC based on ARM SMC Calling Convention. > > CONFIG_HAVE_SMCCC is enabled for architectures that may support > > the SMC or HVC

Re: [PATCH v6 1/6] arm/arm64: add smccc

2015-11-02 Thread Will Deacon
Hi Jens, On Thu, Oct 29, 2015 at 09:21:23AM +0100, Jens Wiklander wrote: > Adds helpers to do SMC and HVC based on ARM SMC Calling Convention. > CONFIG_HAVE_SMCCC is enabled for architectures that may support > the SMC or HVC instruction. It's the responsibility of the caller > to know if the SMC

[PATCH v6 1/6] arm/arm64: add smccc

2015-10-29 Thread Jens Wiklander
Adds helpers to do SMC and HVC based on ARM SMC Calling Convention. CONFIG_HAVE_SMCCC is enabled for architectures that may support the SMC or HVC instruction. It's the responsibility of the caller to know if the SMC instruction is supported by the platform. Signed-off-by: Jens Wiklander --- arc