summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/prog_loaders.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/lib/prog_loaders.c b/src/lib/prog_loaders.c
index 419f4cd834..93efc0a280 100644
--- a/src/lib/prog_loaders.c
+++ b/src/lib/prog_loaders.c
@@ -129,10 +129,13 @@ void run_ramstage(void)
timestamp_add_now(TS_START_COPYRAM);
- if (ENV_X86 && load_relocatable_ramstage(&ramstage))
- goto fail;
- else if (cbfs_prog_stage_load(&ramstage))
- goto fail;
+ if (ENV_X86) {
+ if (load_relocatable_ramstage(&ramstage))
+ goto fail;
+ } else {
+ if (cbfs_prog_stage_load(&ramstage))
+ goto fail;
+ }
stage_cache_add(STAGE_RAMSTAGE, &ramstage);