summaryrefslogtreecommitdiff
path: root/arch/arm/cpu/armv8/sec_firmware_asm.S
diff options
context:
space:
mode:
authorAlison Wang <b18965@freescale.com>2017-01-17 09:39:17 +0800
committerYork Sun <york.sun@nxp.com>2017-01-18 09:29:33 -0800
commit7c5e1feb1d780cc857632c246e78ac7a8e6cf2d7 (patch)
tree74e3a73c1be3c56594f7e19267838c5a4c4fe81f /arch/arm/cpu/armv8/sec_firmware_asm.S
parent2ca84bf7b2d7930b424b19f5027d3c06ec7cb696 (diff)
armv8: aarch64: Fix the warning about x1-x3 nonzero issue
For 64-bit kernel, there is a warning about x1-x3 nonzero in violation of boot protocol. To fix this issue, input argument 4 is added for armv8_switch_to_el2 and armv8_switch_to_el1. The input argument 4 will be set to the right value, such as zero. Signed-off-by: Alison Wang <alison.wang@nxp.com> Reviewed-by: Alexander Graf <agraf@suse.de> Tested-by: Ryan Harkin <ryan.harkin@linaro.org> Tested-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'arch/arm/cpu/armv8/sec_firmware_asm.S')
-rw-r--r--arch/arm/cpu/armv8/sec_firmware_asm.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/cpu/armv8/sec_firmware_asm.S b/arch/arm/cpu/armv8/sec_firmware_asm.S
index 903195dbce..5ed3677f55 100644
--- a/arch/arm/cpu/armv8/sec_firmware_asm.S
+++ b/arch/arm/cpu/armv8/sec_firmware_asm.S
@@ -57,7 +57,8 @@ ENDPROC(_sec_firmware_support_psci_version)
* x0: argument, zero
* x1: machine nr
* x2: fdt address
- * x3: kernel entry point
+ * x3: input argument
+ * x4: kernel entry point
* @param outputs for secure firmware:
* x0: function id
* x1: kernel entry point
@@ -65,10 +66,9 @@ ENDPROC(_sec_firmware_support_psci_version)
* x3: fdt address
*/
ENTRY(armv8_el2_to_aarch32)
- mov x0, x3
mov x3, x2
mov x2, x1
- mov x1, x0
+ mov x1, x4
ldr x0, =0xc000ff04
smc #0
ret