[PATCH v2 4/9] arm: armv7: save boot arguments
Raymond Mao
raymond.mao at linaro.org
Thu Dec 21 01:40:23 CET 2023
Save boot arguments r[0-3] into an array for handover of bloblist from
previous boot stage.
Signed-off-by: Raymond Mao <raymond.mao at linaro.org>
---
Changes in v2
- New patch file created for v2.
arch/arm/cpu/armv7/start.S | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/arch/arm/cpu/armv7/start.S b/arch/arm/cpu/armv7/start.S
index 69e281b086..ac55b443da 100644
--- a/arch/arm/cpu/armv7/start.S
+++ b/arch/arm/cpu/armv7/start.S
@@ -152,9 +152,21 @@ ENDPROC(c_runtime_cpu_setup)
*
*************************************************************************/
WEAK(save_boot_params)
+#if (IS_ENABLED(CONFIG_OF_BOARD) && IS_ENABLED(CONFIG_BLOBLIST))
+ ldr r12, =saved_args
+ stm r12, {r0, r1, r2, r3}
+#endif
b save_boot_params_ret @ back to my caller
ENDPROC(save_boot_params)
+.section .data
+.global saved_args
+saved_args:
+ .rept 4
+ .word 0
+ .endr
+END(saved_args)
+
#ifdef CONFIG_ARMV7_LPAE
WEAK(switch_to_hypervisor)
b switch_to_hypervisor_ret
--
2.25.1
More information about the U-Boot
mailing list