From 47770c07692e28cd66d74da9d94c6c1ca3e76056 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Sun, 12 Jan 2014 14:38:24 +0200 Subject: AMD AGESA: Fix CBMEM on S3 resume MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-on: http://review.coreboot.org/4672 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/cpu/amd/agesa/s3_resume.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cpu') 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); -- cgit v1.2.3