summaryrefslogtreecommitdiff
path: root/sys/arch/mips64
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2021-10-24 15:29:11 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2021-10-24 15:29:11 +0000
commitd617215f58543b2efac8e550a7e2d7d3d73f87a1 (patch)
treeb35164cf1dcd8304602ef47b38bbcef151aacad3 /sys/arch/mips64
parent89c48244d3879565dba55fbe8dccd149a25fcc39 (diff)
Unlock top part of UVM fault handler on mips64.
OK mpi@
Diffstat (limited to 'sys/arch/mips64')
-rw-r--r--sys/arch/mips64/mips64/trap.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/arch/mips64/mips64/trap.c b/sys/arch/mips64/mips64/trap.c
index 588f3af4dfe..3c359ca6c64 100644
--- a/sys/arch/mips64/mips64/trap.c
+++ b/sys/arch/mips64/mips64/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.154 2021/05/01 16:11:11 visa Exp $ */
+/* $OpenBSD: trap.c,v 1.155 2021/10/24 15:29:10 visa Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -283,9 +283,7 @@ itsa(struct trapframe *trapframe, struct cpu_info *ci, struct proc *p,
va = trunc_page((vaddr_t)trapframe->badvaddr);
onfault = pcb->pcb_onfault;
pcb->pcb_onfault = 0;
- KERNEL_LOCK();
rv = uvm_fault(kernel_map, va, 0, access_type);
- KERNEL_UNLOCK();
pcb->pcb_onfault = onfault;
if (rv == 0)
return;
@@ -350,9 +348,7 @@ fault_common_no_miss:
onfault = pcb->pcb_onfault;
pcb->pcb_onfault = 0;
- KERNEL_LOCK();
rv = uvm_fault(map, va, 0, access_type);
- KERNEL_UNLOCK();
pcb->pcb_onfault = onfault;
/*