Thread (15 messages) 15 messages, 4 authors, 2019-10-11

Re: [PATCHv3 6/6] smccc: make 1.1 macros value-returning

From: Mark Rutland <mark.rutland@arm.com>
Date: 2019-08-19 10:44:33

On Thu, Aug 15, 2019 at 05:42:44PM +0100, Will Deacon wrote:
On Fri, Aug 09, 2019 at 02:22:45PM +0100, Mark Rutland wrote:
quoted
The arm_smccc_1_1_{smc,hvc}() macros for inline invocation take a res
pointer as their final argument, matching the out-of-line SMCCC
invocation functions.

However, the inline invocation macros are variadic, so it's easy to mess
up passsing the correct parameters.
passing
quoted
Instead, let's make them value-returning, which is less confusing.
I'm not completely sure I agree with you here because, as far as I can
tell, it means that we have a different calling convention for 1.0 (i.e.
arm_smccc_smc()) and 1.1 (i.e. arm_smccc_1_1_smc).

Can we do the same for 1.0 as well or am I missing something?
I will take a look; I think the QC quirk is the only thing that gets in
the way.

Mark.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help