ACPI: Allocate S3 resume backup in CBMEM earlier
These allocations are not really part of write_tables() and the move opens possibilities to use CBMEM instead of SPI Flash to restore some parts of system state after S3 resume. Change-Id: I0c36bcee3f1da525af077fc1d18677ee85097e4d Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/7097 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@google.com>
This commit is contained in:
@@ -196,16 +196,6 @@ void write_tables(void)
|
||||
|
||||
post_code(0x9e);
|
||||
|
||||
/* Let's prepare the ACPI S3 Resume area now already, so we can rely on
|
||||
* it begin there during reboot time. We don't need the pointer, nor
|
||||
* the result right now. If it fails, ACPI resume will be disabled.
|
||||
*/
|
||||
if (HIGH_MEMORY_SAVE && acpi_s3_resume_allowed())
|
||||
cbmem_add(CBMEM_ID_RESUME, HIGH_MEMORY_SAVE);
|
||||
|
||||
if (HIGH_MEMORY_SCRATCH && acpi_s3_resume_allowed())
|
||||
cbmem_add(CBMEM_ID_RESUME_SCRATCH, HIGH_MEMORY_SCRATCH);
|
||||
|
||||
#define MAX_COREBOOT_TABLE_SIZE (32 * 1024)
|
||||
post_code(0x9d);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user