[Concept,v2,04/22] arm: Drop kernel_entry for arm64

Message ID 20250819185900.835939-5-sjg@u-boot.org
State New
Headers
Series efi: Improvements for the EFI app on ARM |

Commit Message

Simon Glass Aug. 19, 2025, 6:58 p.m. UTC
  From: Simon Glass <sjg@chromium.org>

This variable is tricky to set up and is only used to show an address.
Drop it and use the source variable instead.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

(no changes since v1)

 arch/arm/lib/bootm.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
  

Patch

diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c
index f15092fcae4..02ff8beaeab 100644
--- a/arch/arm/lib/bootm.c
+++ b/arch/arm/lib/bootm.c
@@ -260,15 +260,10 @@  static void switch_to_el1(void)
 static void boot_jump_linux(struct bootm_headers *images, int flag)
 {
 #ifdef CONFIG_ARM64
-	void (*kernel_entry)(void *fdt_addr, void *res0, void *res1,
-			void *res2);
 	int fake = (flag & BOOTM_STATE_OS_FAKE_GO);
 
-	kernel_entry = (void (*)(void *fdt_addr, void *res0, void *res1,
-				void *res2))images->ep;
-
 	debug("## Transferring control to Linux (at address %lx)...\n",
-		(ulong) kernel_entry);
+		(ulong)images->ep);
 	bootstage_mark(BOOTSTAGE_ID_RUN_OS);
 
 	bootm_final(fake ? BOOTM_FINAL_FAKE : 0);