[PATCH v3 10/17] x86: spl: Show debugging for BSS
Simon Glass
sjg at chromium.org
Fri May 5 00:50:54 CEST 2023
Show the area of memory cleared for BSS, when debugging is enabled.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
Changes in v3:
- Drop change to memset()
arch/x86/lib/spl.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/x86/lib/spl.c b/arch/x86/lib/spl.c
index bdf57ef7b5b..5e47ffa7db7 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
--
2.40.1.521.gf1e218fcd8-goog
More information about the U-Boot
mailing list