ACPI S3: Depend on RELOCATABLE_RAMSTAGE
With RELOCATABLE_RAMSTAGE, S3 resume path only uses memory that is reserved from OS. So there is no need for low memory backup and recovery. Change-Id: If7f83711685ac445abf4cd1aa6b66c3391e0e554 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/26834 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
@ -107,18 +107,6 @@ static int load_relocatable_ramstage(struct prog *ramstage)
|
||||
return rmodule_stage_load(&rmod_ram);
|
||||
}
|
||||
|
||||
static int load_nonrelocatable_ramstage(struct prog *ramstage)
|
||||
{
|
||||
if (CONFIG(HAVE_ACPI_RESUME)) {
|
||||
uintptr_t base = 0;
|
||||
size_t size = cbfs_prog_stage_section(ramstage, &base);
|
||||
if (size)
|
||||
backup_ramstage_section(base, size);
|
||||
}
|
||||
|
||||
return cbfs_prog_stage_load(ramstage);
|
||||
}
|
||||
|
||||
void run_ramstage(void)
|
||||
{
|
||||
struct prog ramstage =
|
||||
@ -147,7 +135,7 @@ void run_ramstage(void)
|
||||
if (CONFIG(RELOCATABLE_RAMSTAGE)) {
|
||||
if (load_relocatable_ramstage(&ramstage))
|
||||
goto fail;
|
||||
} else if (load_nonrelocatable_ramstage(&ramstage))
|
||||
} else if (cbfs_prog_stage_load(&ramstage))
|
||||
goto fail;
|
||||
|
||||
stage_cache_add(STAGE_RAMSTAGE, &ramstage);
|
||||
|
Reference in New Issue
Block a user