From c06a3f72f82f46eb2b56c7b84a605001f7c38049 Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Thu, 12 Oct 2017 11:32:20 -0600 Subject: arch/x86: initialize EBDA in S3 and S0/S5 path It's more consistent to re-initialize EBDA in all boot paths. That way, the data living in EBDA is cleared prior to be accessed (assuming it's after setup_ebda()). Change-Id: I05ff84f869f7b6a463e52b4cb954acc5566475cd Signed-off-by: Aaron Durbin Reviewed-on: https://review.coreboot.org/21997 Tested-by: build bot (Jenkins) Reviewed-by: Subrata Banik --- src/arch/x86/ebda.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/arch/x86/ebda.c') diff --git a/src/arch/x86/ebda.c b/src/arch/x86/ebda.c index ba02e50401..f6726cf1af 100644 --- a/src/arch/x86/ebda.c +++ b/src/arch/x86/ebda.c @@ -18,7 +18,6 @@ #include #include #include -#include #include #include @@ -84,10 +83,6 @@ void setup_ebda(u32 low_memory_size, u16 ebda_segment, u16 ebda_size) u16 ebda_kb; void *ebda; - /* Skip in S3 resume path */ - if (acpi_is_wakeup_s3()) - return; - if (!low_memory_size || !ebda_segment || !ebda_size) return; -- cgit v1.2.3