aboutsummaryrefslogtreecommitdiff
path: root/sys/riscv
diff options
context:
space:
mode:
authorMitchell Horne <mhorne@FreeBSD.org>2022-01-11 15:24:30 +0000
committerMitchell Horne <mhorne@FreeBSD.org>2022-01-19 21:21:25 +0000
commiteb81812fb782c302d849953c68c9e1e61facd03d (patch)
tree38e66dc932d929bb9eb700087500822f8a1ba03f /sys/riscv
parenteea7c61590ae8968b3f1f609cf0bc8633222a94f (diff)
Diffstat (limited to 'sys/riscv')
-rw-r--r--sys/riscv/riscv/trap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/riscv/riscv/trap.c b/sys/riscv/riscv/trap.c
index 8eb52fcc5337..b89eae325e0c 100644
--- a/sys/riscv/riscv/trap.c
+++ b/sys/riscv/riscv/trap.c
@@ -205,7 +205,7 @@ page_fault_handler(struct trapframe *frame, int usermode)
frame->tf_scause & SCAUSE_CODE);
goto done;
}
- map = &td->td_proc->p_vmspace->vm_map;
+ map = &p->p_vmspace->vm_map;
} else {
/*
* Enable interrupts for the duration of the page fault. For
@@ -221,7 +221,7 @@ page_fault_handler(struct trapframe *frame, int usermode)
} else {
if (pcb->pcb_onfault == 0)
goto fatal;
- map = &td->td_proc->p_vmspace->vm_map;
+ map = &p->p_vmspace->vm_map;
}
}