From 4678e84c040531a48eff2108fd9212660bf527ae Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Wed, 15 Feb 2017 15:20:06 -0800 Subject: Incorporate sptbr/sfence.vma changes --- bbl/bbl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bbl') 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() -- cgit v1.1