]> git.baikalelectronics.ru Git - kernel.git/commit
arm/arm64: smccc-1.1: Make return values unsigned long
authorMarc Zyngier <marc.zyngier@arm.com>
Fri, 24 Aug 2018 14:08:29 +0000 (15:08 +0100)
committerWill Deacon <will.deacon@arm.com>
Wed, 29 Aug 2018 10:42:20 +0000 (11:42 +0100)
commitfe1815170ad4c011ff296047572e040a986a24c8
treeed4ddd0ac3cfb2f14206a832d3ddf265b2f0bcbe
parent25da38eb1ac2365616a74614a39f27212937691f
arm/arm64: smccc-1.1: Make return values unsigned long

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>
Signed-off-by: Will Deacon <will.deacon@arm.com>
include/linux/arm-smccc.h