Skip to contentSkip to conversation

arm: mach-rmobile: Mark the default s_init function as weak

PATCH New Biju Das 2 participants 2 messages Sep 22, 2020

Subsystems (3)
lore
Share & tools
lore

Biju Das

author
#0 lore raw

PATCH 1/1 arm: mach-rmobile: Mark the default s_init function as weak

Mark the default s_init function as weak, so that SoC's can override it if needed, and it will still be discarded if unused.

---
 arch/arm/mach-rmobile/lowlevel_init_gen3.S | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm/mach-rmobile/lowlevel_init_gen3.S +6 -0
index 213ec143e2..1df2c40345 100644
@@ -31,6 +31,12 @@ ENTRY(save_boot_params)
 	b	save_boot_params_ret
 ENDPROC(save_boot_params)
 
+.pushsection .text.s_init, "ax"
+WEAK(s_init)
+	ret
+ENDPROC(s_init)
+.popsection
+
 ENTRY(lowlevel_init)
 	mov	x29, lr			/* Save LR */
 
Signature · 1 line
2.17.1
Applied
#1 lore raw

PATCH 1/1 arm: mach-rmobile: Mark the default s_init function as weak

Quoted 2 lines · Biju Das

Mark the default s_init function as weak, so that SoC's can override it if needed, and it will still be discarded if unused.

Applied to sh/next, thanks