[PATCH 22/34] bootstd: cros: Correct the x86-setup address

Simon Glass sjg at chromium.org
Fri Oct 18 01:24:01 CEST 2024


This should really use an address rather than the buffer. Update it in
the command.

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

 cmd/bootflow.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/cmd/bootflow.c b/cmd/bootflow.c
index 5f656814b29..3e9769e0d42 100644
--- a/cmd/bootflow.c
+++ b/cmd/bootflow.c
@@ -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) {
-- 
2.34.1



More information about the U-Boot mailing list