summaryrefslogtreecommitdiff
path: root/arch/x86
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-01-24 20:06:11 +0300
committerBin Meng <bmeng.cn@gmail.com>2021-02-01 10:33:25 +0300
commit3138e4603c39a76fa52b38d9ed52cd7e7277c45d (patch)
tree55e00dde6d73cf519cb14e710457a3b4b75eb40e /arch/x86
parent02840ca1b0e90424d7546cb75117463c873eecc6 (diff)
downloadu-boot-3138e4603c39a76fa52b38d9ed52cd7e7277c45d.tar.xz
x86: tpl: Show next stage being booted
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>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/lib/tpl.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/x86/lib/tpl.c b/arch/x86/lib/tpl.c
index 04ff32277f..c84a0c9bc7 100644
--- a/arch/x86/lib/tpl.c
+++ b/arch/x86/lib/tpl.c
@@ -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();
}