Show the area of memory cleared for BSS, when debugging is enabled.

Signed-off-by: Simon Glass <s...@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

Reply via email to