diff options
author | Simon Glass <sjg@chromium.org> | 2023-05-04 16:50:54 -0600 |
---|---|---|
committer | Bin Meng <bmeng@tinylab.org> | 2023-05-11 10:25:29 +0800 |
commit | 3d0f885a2adc9320a01a905a9deaa06d51614d92 (patch) | |
tree | 3549cdede40b1a48cc2c04d53d2091ecbca8eb74 | |
parent | 392720b429a967a449e0c02a12193aac4b170c9c (diff) | |
download | u-boot-3d0f885a2adc9320a01a905a9deaa06d51614d92.zip u-boot-3d0f885a2adc9320a01a905a9deaa06d51614d92.tar.gz u-boot-3d0f885a2adc9320a01a905a9deaa06d51614d92.tar.bz2 |
x86: spl: Show debugging for BSS
Show the area of memory cleared for BSS, when debugging is enabled.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
-rw-r--r-- | arch/x86/lib/spl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/lib/spl.c b/arch/x86/lib/spl.c index bdf57ef..5e47ffa 100644 --- a/arch/x86/lib/spl.c +++ b/arch/x86/lib/spl.c @@ -117,6 +117,8 @@ static int x86_spl_init(void) } #ifndef CONFIG_SYS_COREBOOT + debug("BSS clear from %lx to %lx len %lx\n", (ulong)&__bss_start, + (ulong)&__bss_end, (ulong)&__bss_end - (ulong)&__bss_start); memset(&__bss_start, 0, (ulong)&__bss_end - (ulong)&__bss_start); # ifndef CONFIG_TPL |