mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-29 16:10:24 +09:00
x86: spl: Clear BSS unconditionally
This should be done even if not using TPL, since BSS may be in use or boards that only use SPL. Fix it. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
06c085c0d2
commit
02840ca1b0
@ -115,8 +115,8 @@ static int x86_spl_init(void)
|
||||
}
|
||||
|
||||
#ifndef CONFIG_SYS_COREBOOT
|
||||
# ifndef CONFIG_TPL
|
||||
memset(&__bss_start, 0, (ulong)&__bss_end - (ulong)&__bss_start);
|
||||
# ifndef CONFIG_TPL
|
||||
|
||||
/* TODO(sjg@chromium.org): Consider calling cpu_init_r() here */
|
||||
ret = interrupt_init();
|
||||
|
Loading…
Reference in New Issue
Block a user