[PATCH 09/13] armv8: spin_table: Perform byte swap for jump address
Jiaxun Yang
jiaxun.yang at flygoat.com
Sun May 19 14:56:54 CEST 2024
Address comes from spin table is always little endian.
Signed-off-by: Jiaxun Yang <jiaxun.yang at flygoat.com>
---
arch/arm/cpu/armv8/spin_table_v8.S | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/cpu/armv8/spin_table_v8.S b/arch/arm/cpu/armv8/spin_table_v8.S
index 6d268432702f..023c82261ca6 100644
--- a/arch/arm/cpu/armv8/spin_table_v8.S
+++ b/arch/arm/cpu/armv8/spin_table_v8.S
@@ -12,6 +12,8 @@ spin_table_reserve_begin:
0: wfe
ldr x0, spin_table_cpu_release_addr
cbz x0, 0b
+ /* spin-table is always little endian */
+CPU_BE( rev x0, x0)
br x0
.globl spin_table_cpu_release_addr
.align 3
--
2.43.0
More information about the U-Boot
mailing list