aboutsummaryrefslogtreecommitdiff
path: root/bbl/bbl.c
diff options
context:
space:
mode:
Diffstat (limited to 'bbl/bbl.c')
-rw-r--r--bbl/bbl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bbl/bbl.c b/bbl/bbl.c
index 487a416..eacb6c3 100644
--- a/bbl/bbl.c
+++ b/bbl/bbl.c
@@ -51,7 +51,7 @@ static void supervisor_vm_init()
mb();
root_page_table = root_pt;
- write_csr(sptbr, (uintptr_t)root_pt >> RISCV_PGSHIFT);
+ write_csr(sptbr, ((uintptr_t)root_pt >> RISCV_PGSHIFT) | SPTBR_MODE);
}
void boot_loader()