From: Simon Glass Date: Sun, 24 Jan 2021 17:06:10 +0000 (-0700) Subject: x86: spl: Clear BSS unconditionally X-Git-Url: http://git.dujemihanovic.xyz/html/%7B%7B%20%28.OutputFormats.Get?a=commitdiff_plain;h=02840ca1b0e90424d7546cb75117463c873eecc6;p=u-boot.git 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 Reviewed-by: Bin Meng --- 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();