Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Pass the appropriate access_type to uvm_vslock() fo...



details:   https://anonhg.NetBSD.org/src/rev/9d7ad1dbde9d
branches:  trunk
changeset: 473232:9d7ad1dbde9d
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Wed May 26 01:08:03 1999 +0000

description:
Pass the appropriate access_type to uvm_vslock() for the given physio
operation: B_READ == VM_PROT_READ|VM_PROT_WRITE, B_WRITE == VM_PROT_READ.

diffstat:

 sys/kern/kern_physio.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r e52070390799 -r 9d7ad1dbde9d sys/kern/kern_physio.c
--- a/sys/kern/kern_physio.c    Wed May 26 01:07:06 1999 +0000
+++ b/sys/kern/kern_physio.c    Wed May 26 01:08:03 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_physio.c,v 1.35 1999/03/24 05:51:23 mrg Exp $     */
+/*     $NetBSD: kern_physio.c,v 1.36 1999/05/26 01:08:03 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1994 Christopher G. Demetriou
@@ -180,7 +180,8 @@
                         * restores it.
                         */
                        PHOLD(p);
-                       uvm_vslock(p, bp->b_data, todo);
+                       uvm_vslock(p, bp->b_data, todo, (flags & B_READ) ?
+                           VM_PROT_READ | VM_PROT_WRITE : VM_PROT_READ);
                        vmapbuf(bp, todo);
 
                        /* [call strategy to start the transfer] */



Home | Main Index | Thread Index | Old Index