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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx>
---
 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


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux