bootm: pass kernel load address not entry point for IH_OS_EFI
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Wed, 30 Apr 2025 10:55:46 +0000 (12:55 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 1 May 2025 07:24:39 +0000 (09:24 +0200)
commitac3b51ef727b052fce3b36e9a8b9b5984fd454c6
tree91bfd5331008a79657a19e40517aab4d7a812a5d
parent6f399d4116cd80263cb8a79db1f5452fb5cd6a27
bootm: pass kernel load address not entry point for IH_OS_EFI

The EFI sub-system needs the load address and not the entry point
to boot the binary passed from the bootm command. The entry point
is derived from the PE-COFF header of the binary.

Fixes: ecc7fdaa9ef1 ("bootm: Add a bootm command for type IH_OS_EFI")
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
boot/bootm_os.c