aboutsummaryrefslogtreecommitdiff
path: root/bbl
diff options
context:
space:
mode:
Diffstat (limited to 'bbl')
-rw-r--r--bbl/bbl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/bbl/bbl.c b/bbl/bbl.c
index 6363d0a..08e44af 100644
--- a/bbl/bbl.c
+++ b/bbl/bbl.c
@@ -58,7 +58,11 @@ void boot_other_hart(uintptr_t unused __attribute__((unused)))
}
}
+#ifdef BBL_BOOT_MACHINE
+ enter_machine_mode(entry, hartid, dtb_output());
+#else /* Run bbl in supervisor mode */
enter_supervisor_mode(entry, hartid, dtb_output());
+#endif
}
void boot_loader(uintptr_t dtb)