diff options
author | Andrew Waterman <waterman@cs.berkeley.edu> | 2016-02-19 12:02:07 -0800 |
---|---|---|
committer | Andrew Waterman <waterman@cs.berkeley.edu> | 2016-02-19 13:01:11 -0800 |
commit | 573c7d3f12f50fec5aa974c7ebe61f1db59f5152 (patch) | |
tree | ff24c7d427be68bfff44ee6fe2eec28032c3d0f7 /pk | |
parent | 28d64a2227ab45b31c71de8366f4c7f965248ca8 (diff) | |
download | riscv-pk-573c7d3f12f50fec5aa974c7ebe61f1db59f5152.zip riscv-pk-573c7d3f12f50fec5aa974c7ebe61f1db59f5152.tar.gz riscv-pk-573c7d3f12f50fec5aa974c7ebe61f1db59f5152.tar.bz2 |
fix comment
Diffstat (limited to 'pk')
-rw-r--r-- | pk/mtrap.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -358,7 +358,7 @@ void mcall_trap(uintptr_t* regs, uintptr_t mcause, uintptr_t mepc) static void machine_page_fault(uintptr_t* regs, uintptr_t mepc) { // MPRV=1 iff this trap occurred while emulating an instruction on behalf - // of a lower privilege level, MPRV=1. In that case, a2=epc and a3=mstatus. + // of a lower privilege level. In that case, a2=epc and a3=mstatus. if (read_csr(mstatus) & MSTATUS_MPRV) { write_csr(sbadaddr, read_csr(mbadaddr)); return redirect_trap(regs[12], regs[13]); |