summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/hardwaremain.c2
-rw-r--r--src/lib/prog_loaders.c14
2 files changed, 1 insertions, 15 deletions
diff --git a/src/lib/hardwaremain.c b/src/lib/hardwaremain.c
index 2881162a34..3c6fb931d8 100644
--- a/src/lib/hardwaremain.c
+++ b/src/lib/hardwaremain.c
@@ -187,8 +187,6 @@ static boot_state_t bs_os_resume_check(void *arg)
boot_states[BS_OS_RESUME].arg = wake_vector;
return BS_OS_RESUME;
}
-
- acpi_prepare_resume_backup();
#endif
timestamp_add_now(TS_CBMEM_POST);
diff --git a/src/lib/prog_loaders.c b/src/lib/prog_loaders.c
index dfabd31910..2ef6bdfc32 100644
--- a/src/lib/prog_loaders.c
+++ b/src/lib/prog_loaders.c
@@ -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);