summaryrefslogtreecommitdiff
path: root/arch/x86
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-01-24 20:06:10 +0300
committerBin Meng <bmeng.cn@gmail.com>2021-02-01 10:33:25 +0300
commit02840ca1b0e90424d7546cb75117463c873eecc6 (patch)
tree8834e151fe1c4b584037be39fa270bb2c282995d /arch/x86
parent06c085c0d2a1ae33b1772d04dec9b1f66af12f14 (diff)
downloadu-boot-02840ca1b0e90424d7546cb75117463c873eecc6.tar.xz
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>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/lib/spl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/lib/spl.c b/arch/x86/lib/spl.c
index cf22fa2d7b..6699de49c6 100644
--- a/arch/x86/lib/spl.c
+++ b/arch/x86/lib/spl.c
@@ -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();