summaryrefslogtreecommitdiff
path: root/src/arch/x86/acpi_s3.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/x86/acpi_s3.c')
-rw-r--r--src/arch/x86/acpi_s3.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/arch/x86/acpi_s3.c b/src/arch/x86/acpi_s3.c
index 8db906a476..b6bee0d6a6 100644
--- a/src/arch/x86/acpi_s3.c
+++ b/src/arch/x86/acpi_s3.c
@@ -102,7 +102,12 @@ static void acpi_jump_to_wakeup(void *vector)
{
uintptr_t acpi_backup_memory = 0;
- if (HIGH_MEMORY_SAVE && acpi_s3_resume_allowed()) {
+ if (!acpi_s3_resume_allowed()) {
+ printk(BIOS_WARNING, "ACPI: S3 resume not allowed.\n");
+ return;
+ }
+
+ if (HIGH_MEMORY_SAVE) {
acpi_backup_memory = (uintptr_t)cbmem_find(CBMEM_ID_RESUME);
if (!acpi_backup_memory) {