summaryrefslogtreecommitdiff
path: root/src/lib/prog_loaders.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/prog_loaders.c')
-rw-r--r--src/lib/prog_loaders.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/lib/prog_loaders.c b/src/lib/prog_loaders.c
index 14e12998e0..38dfc2b5df 100644
--- a/src/lib/prog_loaders.c
+++ b/src/lib/prog_loaders.c
@@ -107,8 +107,13 @@ void run_ramstage(void)
timestamp_add_now(TS_END_ROMSTAGE);
- /* Only x86 systems currently take the same firmware path on resume. */
- if (IS_ENABLED(CONFIG_ARCH_X86) && IS_ENABLED(CONFIG_EARLY_CBMEM_INIT))
+ /*
+ * Only x86 systems using ramstage stage cache currently take the same
+ * firmware path on resume.
+ */
+ if (IS_ENABLED(CONFIG_ARCH_X86) &&
+ !IS_ENABLED(CONFIG_NO_STAGE_CACHE) &&
+ IS_ENABLED(CONFIG_EARLY_CBMEM_INIT))
run_ramstage_from_resume(romstage_handoff_find_or_add(),
&ramstage);