summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2014-01-12 14:38:24 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2014-01-22 20:55:20 +0100
commit47770c07692e28cd66d74da9d94c6c1ca3e76056 (patch)
tree0b3db34bd1bd99e92a2b334cc83fc85d4a9539fe
parent2d8520b275d47e0670e7f9e166e0f63c32855548 (diff)
downloadcoreboot-47770c07692e28cd66d74da9d94c6c1ca3e76056.tar.xz
AMD AGESA: Fix CBMEM on S3 resume
Change to use cbmem_recovery() to wipe CBMEM region and reset ACPI wakeup if CBMEM TOC was not found. Change-Id: I6648570d76b5c137f50addcc5bce9c126d179c65 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/4672 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@google.com>
-rw-r--r--src/cpu/amd/agesa/s3_resume.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpu/amd/agesa/s3_resume.c b/src/cpu/amd/agesa/s3_resume.c
index ef19b53044..558fc75c73 100644
--- a/src/cpu/amd/agesa/s3_resume.c
+++ b/src/cpu/amd/agesa/s3_resume.c
@@ -111,7 +111,7 @@ inline void *backup_resume(void)
{
void *resume_backup_memory;
- if (!cbmem_reinit())
+ if (cbmem_recovery(1))
return NULL;
resume_backup_memory = cbmem_find(CBMEM_ID_RESUME);