aboutsummaryrefslogtreecommitdiff
path: root/pk/pk.c
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2017-03-21 16:56:52 -0700
committerAndrew Waterman <andrew@sifive.com>2017-03-21 16:56:52 -0700
commit7d60c5904f45d979643c1b9f6cdde42f62ef3c32 (patch)
tree63577f9eb00e0f9686ab9ec661cc622104771e37 /pk/pk.c
parentcfc4554bc641214261089e03edc2450e9af027ac (diff)
downloadriscv-pk-7d60c5904f45d979643c1b9f6cdde42f62ef3c32.zip
riscv-pk-7d60c5904f45d979643c1b9f6cdde42f62ef3c32.tar.gz
riscv-pk-7d60c5904f45d979643c1b9f6cdde42f62ef3c32.tar.bz2
Allow PK access to user memory
Diffstat (limited to 'pk/pk.c')
-rw-r--r--pk/pk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pk/pk.c b/pk/pk.c
index 8132f8d..c0b6407 100644
--- a/pk/pk.c
+++ b/pk/pk.c
@@ -160,6 +160,7 @@ void boot_loader()
write_csr(stvec, &trap_entry);
write_csr(sscratch, 0);
write_csr(sie, 0);
+ set_csr(sstatus, SSTATUS_SUM);
file_init();
enter_supervisor_mode(rest_of_boot_loader, pk_vm_init(), 0);