Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm Pass an access_type to uvm_vslock().



details:   https://anonhg.NetBSD.org/src/rev/6691192502f8
branches:  trunk
changeset: 473230:6691192502f8
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Wed May 26 01:05:24 1999 +0000

description:
Pass an access_type to uvm_vslock().

diffstat:

 sys/uvm/uvm_extern.h |  5 +++--
 sys/uvm/uvm_glue.c   |  8 ++++----
 2 files changed, 7 insertions(+), 6 deletions(-)

diffs (47 lines):

diff -r 59b96a0b4820 -r 6691192502f8 sys/uvm/uvm_extern.h
--- a/sys/uvm/uvm_extern.h      Wed May 26 00:40:20 1999 +0000
+++ b/sys/uvm/uvm_extern.h      Wed May 26 01:05:24 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_extern.h,v 1.25 1999/05/13 21:58:38 thorpej Exp $  */
+/*     $NetBSD: uvm_extern.h,v 1.26 1999/05/26 01:05:24 thorpej Exp $  */
 
 /*
  *
@@ -282,7 +282,8 @@
 __dead void            uvm_scheduler __P((void)) __attribute__((noreturn));
 void                   uvm_swapin __P((struct proc *));
 boolean_t              uvm_useracc __P((caddr_t, size_t, int));
-void                   uvm_vslock __P((struct proc *, caddr_t, size_t));
+void                   uvm_vslock __P((struct proc *, caddr_t, size_t,
+                           vm_prot_t));
 void                   uvm_vsunlock __P((struct proc *, caddr_t, size_t));
 
 
diff -r 59b96a0b4820 -r 6691192502f8 sys/uvm/uvm_glue.c
--- a/sys/uvm/uvm_glue.c        Wed May 26 00:40:20 1999 +0000
+++ b/sys/uvm/uvm_glue.c        Wed May 26 01:05:24 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_glue.c,v 1.21 1999/05/26 00:33:52 thorpej Exp $    */
+/*     $NetBSD: uvm_glue.c,v 1.22 1999/05/26 01:05:26 thorpej Exp $    */
 
 /* 
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -224,15 +224,15 @@
  */
 
 void
-uvm_vslock(p, addr, len)
+uvm_vslock(p, addr, len, access_type)
        struct proc *p;
        caddr_t addr;
        size_t  len;
+       vm_prot_t access_type;
 {
 
-       /* XXX VM_PROT_NONE */
        uvm_fault_wire(&p->p_vmspace->vm_map, trunc_page(addr), 
-           round_page(addr+len), VM_PROT_NONE);
+           round_page(addr+len), access_type);
 }
 
 /*



Home | Main Index | Thread Index | Old Index