diff options
author | Andrew Waterman <andrew@sifive.com> | 2017-03-21 16:56:52 -0700 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2017-03-21 16:56:52 -0700 |
commit | 7d60c5904f45d979643c1b9f6cdde42f62ef3c32 (patch) | |
tree | 63577f9eb00e0f9686ab9ec661cc622104771e37 /pk | |
parent | cfc4554bc641214261089e03edc2450e9af027ac (diff) | |
download | riscv-pk-7d60c5904f45d979643c1b9f6cdde42f62ef3c32.zip riscv-pk-7d60c5904f45d979643c1b9f6cdde42f62ef3c32.tar.gz riscv-pk-7d60c5904f45d979643c1b9f6cdde42f62ef3c32.tar.bz2 |
Allow PK access to user memory
Diffstat (limited to 'pk')
-rw-r--r-- | pk/pk.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |