aboutsummaryrefslogtreecommitdiff
path: root/pk
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@cs.berkeley.edu>2016-02-19 12:02:07 -0800
committerAndrew Waterman <waterman@cs.berkeley.edu>2016-02-19 13:01:11 -0800
commit573c7d3f12f50fec5aa974c7ebe61f1db59f5152 (patch)
treeff24c7d427be68bfff44ee6fe2eec28032c3d0f7 /pk
parent28d64a2227ab45b31c71de8366f4c7f965248ca8 (diff)
downloadriscv-pk-573c7d3f12f50fec5aa974c7ebe61f1db59f5152.zip
riscv-pk-573c7d3f12f50fec5aa974c7ebe61f1db59f5152.tar.gz
riscv-pk-573c7d3f12f50fec5aa974c7ebe61f1db59f5152.tar.bz2
fix comment
Diffstat (limited to 'pk')
-rw-r--r--pk/mtrap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pk/mtrap.c b/pk/mtrap.c
index ac00069..ca0f890 100644
--- a/pk/mtrap.c
+++ b/pk/mtrap.c
@@ -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]);