summaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2021-11-22 09:47:30 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2021-12-13 23:19:38 +0100
commita9d7af700fcc4d044ac2dcfa982e6a4ea1ec79cb (patch)
tree0337eef7f88b17aad5ba8cb1764ca53140d4804c /arch/arm
parent2b3246d95593e62045ce842c8d8710ff1d07b620 (diff)
downloadbarebox-a9d7af700fcc4d044ac2dcfa982e6a4ea1ec79cb.tar.gz
barebox-a9d7af700fcc4d044ac2dcfa982e6a4ea1ec79cb.tar.xz
ARM64: board-dt-2nd: remove no longer needed noinline function split
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@pengutronix.de> Link: https://lore.barebox.org/20211122084732.2597109-29-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/cpu/board-dt-2nd.c21
1 files changed, 8 insertions, 13 deletions
diff --git a/arch/arm/cpu/board-dt-2nd.c b/arch/arm/cpu/board-dt-2nd.c
index 6f6f535918..0731aecd1a 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