aboutsummaryrefslogtreecommitdiff
path: root/bbl
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2017-02-15 15:20:06 -0800
committerAndrew Waterman <andrew@sifive.com>2017-02-15 15:26:04 -0800
commit4678e84c040531a48eff2108fd9212660bf527ae (patch)
tree293343a64c9017bf71add2dfe657a49c18c9cfd7 /bbl
parent6667bc4c42fd9968527644e32841757234285efd (diff)
downloadriscv-pk-4678e84c040531a48eff2108fd9212660bf527ae.zip
riscv-pk-4678e84c040531a48eff2108fd9212660bf527ae.tar.gz
riscv-pk-4678e84c040531a48eff2108fd9212660bf527ae.tar.bz2
Incorporate sptbr/sfence.vma changes
Diffstat (limited to 'bbl')
-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()