summaryrefslogtreecommitdiff
path: root/src/arch/riscv/bootblock_simple.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/riscv/bootblock_simple.c')
-rw-r--r--src/arch/riscv/bootblock_simple.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/arch/riscv/bootblock_simple.c b/src/arch/riscv/bootblock_simple.c
index d8339d1f76..6cde4ec93f 100644
--- a/src/arch/riscv/bootblock_simple.c
+++ b/src/arch/riscv/bootblock_simple.c
@@ -26,6 +26,7 @@
#include <arch/exception.h>
#include <cbfs.h>
#include <console/console.h>
+#include <program_loading.h>
static int boot_cpu(void)
{
@@ -39,9 +40,6 @@ static int boot_cpu(void)
void main(void)
{
- const char *stage_name = CONFIG_CBFS_PREFIX"/romstage";
- void *entry = NULL;
-
/* Globally disable MMU, caches, and branch prediction (these should
* be disabled by default on reset) */
dcache_mmu_disable();
@@ -64,10 +62,5 @@ void main(void)
exception_init();
#endif
- entry = cbfs_load_stage(CBFS_DEFAULT_MEDIA, stage_name);
-
- printk(BIOS_SPEW, "stage_name %s, entry %p\n", stage_name, entry);
-
- if (entry) stage_exit(entry);
- hlt();
+ run_romstage();
}