]> xenbits.xensource.com Git - xen.git/commit
xen/arm: vsmc: The function identifier is always 32-bit
authorJulien Grall <julien.grall@arm.com>
Thu, 16 May 2019 22:31:46 +0000 (23:31 +0100)
committerJulien Grall <julien.grall@arm.com>
Wed, 31 Jul 2019 19:19:23 +0000 (20:19 +0100)
commit7f4217cc60574866cb90d67d9750228c6b86c91e
tree48d5e060703e8f544ec9b6ad96234859f3e01809
parentf3c591f250ee8854aa33026708297d9d58986813
xen/arm: vsmc: The function identifier is always 32-bit

On Arm64, the SMCCC function identifier is always stored in the first 32-bit
of x0 register. The rest of the bits are not defined and should be
ignored.

This means the variable funcid should be an uint32_t rather than
register_t.

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/arch/arm/vsmc.c