[PATCH 08/13] x86: spl: Show debugging for BSS
Simon Glass
sjg at chromium.org
Mon Mar 13 04:11:05 CET 2023
Show the area of memory cleared for BSS, when debugging is enabled.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
arch/x86/lib/spl.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/arch/x86/lib/spl.c b/arch/x86/lib/spl.c
index bdf57ef7b5bd..eb0af219ae29 100644
--- a/arch/x86/lib/spl.c
+++ b/arch/x86/lib/spl.c
@@ -117,7 +117,9 @@ static int x86_spl_init(void)
}
#ifndef CONFIG_SYS_COREBOOT
- memset(&__bss_start, 0, (ulong)&__bss_end - (ulong)&__bss_start);
+ 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
/* TODO(sjg at chromium.org): Consider calling cpu_init_r() here */
--
2.40.0.rc1.284.g88254d51c5-goog
More information about the U-Boot
mailing list