arm: fix hvc call
authorIbai Erkiaga <ibai.erkiaga-elorza@xilinx.com>
Mon, 25 Feb 2019 10:11:45 +0000 (10:11 +0000)
committerTom Rini <trini@konsulko.com>
Mon, 22 Apr 2019 22:13:22 +0000 (18:13 -0400)
commit1721b82c1f98f36d90e10cbd4c7f35209c0ac137
tree5200435f8adc1d7625d7966997e30676eacede53
parent5e218862b78068e32955e5b17b8dbbc941d71054
arm: fix hvc call

HVC call makes use of 6 mandatory arguments rather than 7 in the same way
as SMC calls. The 7th argument is optional (Client ID) for both HVC and
SMC but is implemented as 16-bit parameter and register R7 or W7. The aim
of this patch is just fix compilation error due to an invalid asm code in
the HVC call so that's why the 7th argument is removed.

The issue does not report any error in a normal build as hvc_call is not
used at all and is optimized by the compiler. Using -O0 triggers the
error so the patch is intended to fix issues on a ongoing effor to build
U-Boot with -O0.

Signed-off-by: Ibai Erkiaga <ibai.erkiaga-elorza@xilinx.com>
arch/arm/cpu/armv8/fwcall.c