[coreboot-gerrit] Change in coreboot[master]: arch/x86: Include acpi_s3.c support in postcar stage

Subrata Banik (Code Review) gerrit at coreboot.org
Thu Sep 21 16:59:24 CEST 2017


Subrata Banik has uploaded this change for review. ( https://review.coreboot.org/21626


Change subject: arch/x86: Include acpi_s3.c support in postcar stage
......................................................................

arch/x86: Include acpi_s3.c support in postcar stage

This patch ensures acpi APIs are available for postcar
stage.

Change-Id: Ia0f83cd4886ba7a16286dbbeb3257ede014ee3c7
Signed-off-by: Subrata Banik <subrata.banik at intel.com>
---
M src/arch/x86/Makefile.inc
M src/arch/x86/acpi_s3.c
2 files changed, 2 insertions(+), 1 deletion(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/26/21626/1

diff --git a/src/arch/x86/Makefile.inc b/src/arch/x86/Makefile.inc
index 04e679f..813e01b 100644
--- a/src/arch/x86/Makefile.inc
+++ b/src/arch/x86/Makefile.inc
@@ -278,6 +278,7 @@
 $(eval $(call create_class_compiler,postcar,x86_32))
 postcar-generic-ccopts += -D__POSTCAR__
 
+postcar-$(CONFIG_HAVE_ACPI_RESUME) += acpi_s3.c
 postcar-y += boot.c
 postcar-y += cbfs_and_run.c
 postcar-y += cbmem.c
diff --git a/src/arch/x86/acpi_s3.c b/src/arch/x86/acpi_s3.c
index 0a17ead..90f2c4e 100644
--- a/src/arch/x86/acpi_s3.c
+++ b/src/arch/x86/acpi_s3.c
@@ -25,7 +25,7 @@
 #include <rules.h>
 #include <symbols.h>
 
-#if ENV_RAMSTAGE
+#if ENV_RAMSTAGE || ENV_POSTCAR
 
 /* This is filled with acpi_is_wakeup() call early in ramstage. */
 static int acpi_slp_type = -1;

-- 
To view, visit https://review.coreboot.org/21626
To unsubscribe, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia0f83cd4886ba7a16286dbbeb3257ede014ee3c7
Gerrit-Change-Number: 21626
Gerrit-PatchSet: 1
Gerrit-Owner: Subrata Banik <subrata.banik at intel.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20170921/74d41fcf/attachment.html>


More information about the coreboot-gerrit mailing list