]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit74fa909a05116cc2e39b90cd89f8e3de4fd18cb8
tree5200435f8adc1d7625d7966997e30676eacede53
parente9eb53dcf82f6e1a3eca38345a6b29daf8b03d29
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