diff options
| author | John Dyson <dyson@FreeBSD.org> | 1996-01-19 04:00:31 +0000 |
|---|---|---|
| committer | John Dyson <dyson@FreeBSD.org> | 1996-01-19 04:00:31 +0000 |
| commit | bd7e5f992efa91e837b384122c22470815b2be16 (patch) | |
| tree | 3c31fd95ea745005a9cd6733db5a16f31bd828a6 /sys/kern/sys_process.c | |
| parent | 22cb7684126d5015d675d60ab14e8a3ead76f555 (diff) | |
Notes
Diffstat (limited to 'sys/kern/sys_process.c')
| -rw-r--r-- | sys/kern/sys_process.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c index e9a8c506c25d..cf004dc64dd6 100644 --- a/sys/kern/sys_process.c +++ b/sys/kern/sys_process.c @@ -28,7 +28,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: sys_process.c,v 1.18 1995/12/16 21:43:47 bde Exp $ + * $Id: sys_process.c,v 1.19 1995/12/17 06:59:36 bde Exp $ */ #include <sys/param.h> @@ -85,8 +85,8 @@ pread (struct proc *procp, unsigned int addr, unsigned int *retval) { vm_map_lookup_done (tmap, out_entry); /* Find space in kernel_map for the page we're interested in */ - rv = vm_map_find (kernel_map, object, IDX_TO_OFF(pindex), &kva, - PAGE_SIZE, 1); + rv = vm_map_find (kernel_map, object, IDX_TO_OFF(pindex), + &kva, PAGE_SIZE, 0, VM_PROT_ALL, VM_PROT_ALL, 0); if (!rv) { vm_object_reference (object); @@ -175,9 +175,9 @@ pwrite (struct proc *procp, unsigned int addr, unsigned int datum) { return EFAULT; /* Find space in kernel_map for the page we're interested in */ - rv = vm_map_find (kernel_map, object, IDX_TO_OFF(pindex), &kva, - PAGE_SIZE, 1); - + rv = vm_map_find (kernel_map, object, IDX_TO_OFF(pindex), + &kva, PAGE_SIZE, 0, + VM_PROT_ALL, VM_PROT_ALL, 0); if (!rv) { vm_object_reference (object); |
