]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
x86: tpl: Show next stage being booted
authorSimon Glass <sjg@chromium.org>
Sun, 24 Jan 2021 17:06:11 +0000 (10:06 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Mon, 1 Feb 2021 07:33:25 +0000 (15:33 +0800)
Enhance the debugging to show the next stage being booted as well as a
dump of the start of the image.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/lib/tpl.c

index 04ff32277fd0fbb274fe8ff425d35966f102b077..c84a0c9bc7d98ce0e0f35816e37bafb54b0a8e72 100644 (file)
@@ -111,7 +111,12 @@ int spl_spi_load_image(void)
 
 void __noreturn jump_to_image_no_args(struct spl_image_info *spl_image)
 {
-       debug("Jumping to U-Boot SPL at %lx\n", (ulong)spl_image->entry_point);
+       debug("Jumping to %s at %lx\n", spl_phase_name(spl_next_phase()),
+             (ulong)spl_image->entry_point);
+#ifdef DEBUG
+       print_buffer(spl_image->entry_point, (void *)spl_image->entry_point, 1,
+                    0x20, 0);
+#endif
        jump_to_spl(spl_image->entry_point);
        hang();
 }