From: will.deacon@arm.com (Will Deacon)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/2] arm/arm64: smccc-1.1: Make return values unsigned long
Date: Wed, 29 Aug 2018 11:41:15 +0100 [thread overview]
Message-ID: <20180829104114.GB23979@arm.com> (raw)
In-Reply-To: <20180824140830.12747-2-marc.zyngier@arm.com>
On Fri, Aug 24, 2018 at 03:08:29PM +0100, Marc Zyngier wrote:
> An unfortunate consequence of having a strong typing for the input
> values to the SMC call is that it also affects the type of the
> return values, limiting r0 to 32 bits and r{1,2,3} to whatever
> was passed as an input.
>
> Let's turn everything into "unsigned long", which satisfies the
> requirements of both architectures, and allows for the full
> range of return values.
>
> Reported-by: Julien Grall <julien.grall@arm.com>
> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
> ---
> include/linux/arm-smccc.h | 20 ++++++++++----------
> 1 file changed, 10 insertions(+), 10 deletions(-)
Does this need a Cc stable, or do no current callers need the upper bits of
the return values on arm64?
Will
next prev parent reply other threads:[~2018-08-29 10:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-24 14:08 [PATCH 0/2] arm/arm64: smccc-1.1 fixes Marc Zyngier
2018-08-24 14:08 ` [PATCH 1/2] arm/arm64: smccc-1.1: Make return values unsigned long Marc Zyngier
2018-08-29 10:41 ` Will Deacon [this message]
2018-08-24 14:08 ` [PATCH 2/2] arm/arm64: amccc-1.1: Handle function result as parameters Marc Zyngier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180829104114.GB23979@arm.com \
--to=will.deacon@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.