diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2005-11-04 21:48:08 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2005-11-04 21:48:08 +0000 |
commit | 3d8e26477d53466e9c6005eb82f67134364b9d3a (patch) | |
tree | 18755a263f25352a3bde8dfd07f44d234c312a78 /sys/kern | |
parent | df3527a220a7b4406fb3685a06b8b52e7921b3f6 (diff) |
Add an extra flags argument to uvm_io(), to specify whether we want to fix
the protection of the memory mapping we're doing I/O on, or if we want to
leave them as they are. This should only be necessary for breakpoint
insertion in code, so we'll only use it for ptrace requests.
Initially from art@ after discussion with kettenis@ millert@ and I,
tested by many.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_sysctl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c index bf03966144c..7513ea171f3 100644 --- a/sys/kern/kern_sysctl.c +++ b/sys/kern/kern_sysctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_sysctl.c,v 1.131 2005/09/25 20:48:23 miod Exp $ */ +/* $OpenBSD: kern_sysctl.c,v 1.132 2005/11/04 21:47:57 miod Exp $ */ /* $NetBSD: kern_sysctl.c,v 1.17 1996/05/20 17:49:05 mrg Exp $ */ /*- @@ -1468,7 +1468,7 @@ sysctl_proc_args(int *name, u_int namelen, void *oldp, size_t *oldlenp, uio.uio_rw = UIO_READ; uio.uio_procp = cp; - if ((error = uvm_io(&vp->p_vmspace->vm_map, &uio)) != 0) + if ((error = uvm_io(&vp->p_vmspace->vm_map, &uio, 0)) != 0) goto out; if (op == KERN_PROC_NARGV) { @@ -1525,7 +1525,7 @@ sysctl_proc_args(int *name, u_int namelen, void *oldp, size_t *oldlenp, uio.uio_segflg = UIO_SYSSPACE; uio.uio_rw = UIO_READ; uio.uio_procp = cp; - if ((error = uvm_io(&vp->p_vmspace->vm_map, &uio)) != 0) + if ((error = uvm_io(&vp->p_vmspace->vm_map, &uio, 0)) != 0) goto out; if (varg == NULL) @@ -1547,7 +1547,7 @@ more: uio.uio_segflg = UIO_SYSSPACE; uio.uio_rw = UIO_READ; uio.uio_procp = cp; - if ((error = uvm_io(&vp->p_vmspace->vm_map, &uio)) != 0) + if ((error = uvm_io(&vp->p_vmspace->vm_map, &uio, 0)) != 0) goto out; for (vstrlen = 0; vstrlen < len; vstrlen++) { |