]> xenbits.xensource.com Git - xen.git/commit
xen/arm: smccc-1.1: Make return values unsigned long
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 25 Sep 2018 17:20:38 +0000 (18:20 +0100)
committerJulien Grall <julien.grall@arm.com>
Mon, 1 Oct 2018 11:04:16 +0000 (12:04 +0100)
commit35fc6086124ffe27d297801616e7ac6dc344040b
treebfe5eb944af55054889d0f55dddcab4749704624
parentdcc18294ff3ecb66d0fa695fd22e1e76e42a8808
xen/arm: 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: Stefano Stabellini <stefanos@xilinx.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/include/asm-arm/smccc.h