Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic Pass the appropriate access type for uvm_vslock()...



details:   https://anonhg.NetBSD.org/src/rev/a87c7bc1375a
branches:  trunk
changeset: 473233:a87c7bc1375a
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Wed May 26 01:09:02 1999 +0000

description:
Pass the appropriate access type for uvm_vslock() based on the FP operation:
fpread == VM_PROT_READ|VM_PROT_WRITE, fpwrite == VM_PROT_READ.

diffstat:

 sys/dev/ic/rrunner.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 9d7ad1dbde9d -r a87c7bc1375a sys/dev/ic/rrunner.c
--- a/sys/dev/ic/rrunner.c      Wed May 26 01:08:03 1999 +0000
+++ b/sys/dev/ic/rrunner.c      Wed May 26 01:09:02 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rrunner.c,v 1.10 1999/05/18 23:52:56 thorpej Exp $     */
+/*     $NetBSD: rrunner.c,v 1.11 1999/05/26 01:09:02 thorpej Exp $     */
 
 /*
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -1062,7 +1062,8 @@
 
        for (i = 0; i < uio->uio_iovcnt; i++) {
                iovp = &uio->uio_iov[i];
-               uvm_vslock(p, iovp->iov_base, iovp->iov_len);
+               uvm_vslock(p, iovp->iov_base, iovp->iov_len,
+                   VM_PROT_READ | VM_PROT_WRITE);
        }
 
        /* 
@@ -1225,7 +1226,7 @@
 
        for (i = 0; i < uio->uio_iovcnt; i++) {
                iovp = &uio->uio_iov[i];
-               uvm_vslock(p, iovp->iov_base, iovp->iov_len);
+               uvm_vslock(p, iovp->iov_base, iovp->iov_len, VM_PROT_READ);
        }
 
        /* 



Home | Main Index | Thread Index | Old Index