]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
bootm: Stash bootstage data in bootm_final()
authorSimon Glass <simon.glass@canonical.com>
Fri, 6 Mar 2026 02:36:16 +0000 (19:36 -0700)
committerTom Rini <trini@konsulko.com>
Wed, 18 Mar 2026 19:17:34 +0000 (13:17 -0600)
ARM stashes bootstage data to a known memory location before booting,
so the kernel can pick it up. Add this to bootm_final() so all
architectures benefit from it.

The bootstage_stash_default() function is a no-op when bootstage or
stashing is disabled.

Signed-off-by: Simon Glass <simon.glass@canonical.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
boot/bootm.c

index e553497192c2d2a4b832b497e18485c9a89b3554..c42f3b925bcddd781bbe47d739c361451a125a8b 100644 (file)
@@ -1205,6 +1205,7 @@ void bootm_final(int flag)
 
        if (IS_ENABLED(CONFIG_BOOTSTAGE_FDT) && IS_ENABLED(CONFIG_CMD_FDT))
                bootstage_fdt_add_report();
+       bootstage_stash_default();
        if (IS_ENABLED(CONFIG_BOOTSTAGE_REPORT))
                bootstage_report();