projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
392720b
)
x86: spl: Show debugging for BSS
author
Simon Glass
<sjg@chromium.org>
Thu, 4 May 2023 22:50:54 +0000
(16:50 -0600)
committer
Bin Meng
<bmeng@tinylab.org>
Thu, 11 May 2023 02:25:29 +0000
(10:25 +0800)
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>
arch/x86/lib/spl.c
patch
|
blob
|
history
diff --git
a/arch/x86/lib/spl.c
b/arch/x86/lib/spl.c
index bdf57ef7b5bd32d53942ee278d1d85c88ab25067..5e47ffa7db7d6da16654bcc2f30fbd2a606a141f 100644
(file)
--- 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