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>
This commit is contained in:
Kyösti Mälkki 2014-01-12 14:38:24 +02:00
parent 2d8520b275
commit 47770c0769
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ inline void *backup_resume(void)
{ {
void *resume_backup_memory; void *resume_backup_memory;
if (!cbmem_reinit()) if (cbmem_recovery(1))
return NULL; return NULL;
resume_backup_memory = cbmem_find(CBMEM_ID_RESUME); resume_backup_memory = cbmem_find(CBMEM_ID_RESUME);