[PATCH 28/30] ARM64: board-dt-2nd: remove no longer needed noinline function split

Ahmad Fatoum a.fatoum at pengutronix.de
Mon Nov 22 00:47:30 PST 2021


dt_2nd_aarch64 is called with stack already set up, so no need to split
the entry point into a stackless and stackful part.

Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 arch/arm/cpu/board-dt-2nd.c | 21 ++++++++-------------
 1 file changed, 8 insertions(+), 13 deletions(-)

diff --git a/arch/arm/cpu/board-dt-2nd.c b/arch/arm/cpu/board-dt-2nd.c
index 6f6f53591844..0731aecd1a51 100644
--- a/arch/arm/cpu/board-dt-2nd.c
+++ b/arch/arm/cpu/board-dt-2nd.c
@@ -12,29 +12,24 @@
 
 #ifdef CONFIG_CPU_V8
 
-static noinline void dt_2nd_continue_aarch64(void *fdt)
-{
-	unsigned long membase, memsize;
-
-	if (!fdt)
-		hang();
-
-	fdt_find_mem(fdt, &membase, &memsize);
-
-	barebox_arm_entry(membase, memsize, fdt);
-}
-
 /* called from assembly */
 void dt_2nd_aarch64(void *fdt);
 
 void dt_2nd_aarch64(void *fdt)
 {
+	unsigned long membase, memsize;
+
 	/* entry point already set up stack */
 
 	relocate_to_current_adr();
 	setup_c();
 
-	dt_2nd_continue_aarch64(fdt);
+	if (!fdt)
+		hang();
+
+	fdt_find_mem(fdt, &membase, &memsize);
+
+	barebox_arm_entry(membase, memsize, fdt);
 }
 
 #else
-- 
2.30.2




More information about the barebox mailing list