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>
This commit is contained in:
parent
392720b429
commit
3d0f885a2a
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue