summaryrefslogtreecommitdiff
path: root/sys/arch/mips64
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2013-01-16 19:04:44 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2013-01-16 19:04:44 +0000
commit0140c6b64701e5ae440d727eb7bd858b990a9208 (patch)
tree93a2c966fbf62854aeba4914a94d6d134f3dde29 /sys/arch/mips64
parent17c02d60dce12d7dc0b161afb7e6e99dfafe6959 (diff)
cpu_coredump() also needs to invoke vn_rdwr() without IO_NODELOCKED; only
affects a.out binaries' core dumps.
Diffstat (limited to 'sys/arch/mips64')
-rw-r--r--sys/arch/mips64/mips64/vm_machdep.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/arch/mips64/mips64/vm_machdep.c b/sys/arch/mips64/mips64/vm_machdep.c
index 3ef50ab20e2..de3c0376cc7 100644
--- a/sys/arch/mips64/mips64/vm_machdep.c
+++ b/sys/arch/mips64/mips64/vm_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vm_machdep.c,v 1.27 2012/10/03 11:18:23 miod Exp $ */
+/* $OpenBSD: vm_machdep.c,v 1.28 2013/01/16 19:04:43 miod Exp $ */
/*
* Copyright (c) 1988 University of Utah.
* Copyright (c) 1992, 1993
@@ -194,7 +194,7 @@ cpu_coredump(p, vp, cred, chdr)
error = vn_rdwr(UIO_WRITE, vp, (caddr_t)&cseg, chdr->c_seghdrsize,
(off_t)chdr->c_hdrsize, UIO_SYSSPACE,
- IO_NODELOCKED|IO_UNIT, cred, NULL, p);
+ IO_UNIT, cred, NULL, p);
if (error)
return error;
@@ -202,8 +202,7 @@ cpu_coredump(p, vp, cred, chdr)
(caddr_t)(&(p -> p_addr -> u_pcb.pcb_regs)),
(off_t)chdr -> c_cpusize,
(off_t)(chdr->c_hdrsize + chdr->c_seghdrsize),
- UIO_SYSSPACE, IO_NODELOCKED|IO_UNIT,
- cred, NULL, p);
+ UIO_SYSSPACE, IO_UNIT, cred, NULL, p);
if (!error)
chdr->c_nseg++;