]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
bootstd: cros: Correct the x86-setup address
authorSimon Glass <sjg@chromium.org>
Sat, 19 Oct 2024 15:21:59 +0000 (09:21 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 4 Nov 2024 03:27:12 +0000 (21:27 -0600)
This should really use an address rather than the buffer. Update it in
the command.

Signed-off-by: Simon Glass <sjg@chromium.org>
cmd/bootflow.c

index 1588f277a4a0af78ddfe85ac972422c05754f9e4..5b6e003df77a35621365bf532d5cda964e2609eb 100644 (file)
@@ -403,7 +403,8 @@ static int do_bootflow_info(struct cmd_tbl *cmdtp, int flag, int argc,
                puts("(none)");
        putc('\n');
        if (bflow->x86_setup)
-               printf("X86 setup: %p\n", bflow->x86_setup);
+               printf("X86 setup: %lx\n",
+                      (ulong)map_to_sysmem(bflow->x86_setup));
        printf("Logo:      %s\n", bflow->logo ?
               simple_xtoa((ulong)map_to_sysmem(bflow->logo)) : "(none)");
        if (bflow->logo) {