Source-Changes-HG archive

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

[src/yamt-uio_vmspace]: src/sys/sys define vmspace_kernel() rather than using...



details:   https://anonhg.NetBSD.org/src/rev/66760a0fdb4e
branches:  yamt-uio_vmspace
changeset: 586711:66760a0fdb4e
user:      yamt <yamt%NetBSD.org@localhost>
date:      Sun Feb 05 12:23:56 2006 +0000

description:
define vmspace_kernel() rather than using proc0 directly.

diffstat:

 sys/sys/proc.h |  3 ++-
 sys/sys/uio.h  |  4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r cf6749397183 -r 66760a0fdb4e sys/sys/proc.h
--- a/sys/sys/proc.h    Sun Feb 05 12:06:20 2006 +0000
+++ b/sys/sys/proc.h    Sun Feb 05 12:23:56 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: proc.h,v 1.211.2.1 2005/12/31 11:14:00 yamt Exp $      */
+/*     $NetBSD: proc.h,v 1.211.2.2 2006/02/05 12:23:56 yamt Exp $      */
 
 /*-
  * Copyright (c) 1986, 1989, 1991, 1993
@@ -402,6 +402,7 @@
 
 extern struct proc     proc0;          /* Process slot for swapper */
 extern int             nprocs, maxproc; /* Current and max number of procs */
+#define        vmspace_kernel()        (proc0.p_vmspace)
 
 /* Process list lock; see kern_proc.c for locking protocol details */
 extern struct lock     proclist_lock;
diff -r cf6749397183 -r 66760a0fdb4e sys/sys/uio.h
--- a/sys/sys/uio.h     Sun Feb 05 12:06:20 2006 +0000
+++ b/sys/sys/uio.h     Sun Feb 05 12:23:56 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uio.h,v 1.33.2.1 2005/12/31 11:14:00 yamt Exp $        */
+/*     $NetBSD: uio.h,v 1.33.2.2 2006/02/05 12:23:56 yamt Exp $        */
 
 /*
  * Copyright (c) 1982, 1986, 1993, 1994
@@ -84,7 +84,7 @@
        enum    uio_rw uio_rw;  /* see above */
        struct  vmspace *uio_vmspace;
 };
-#define        UIO_SETUP_SYSSPACE(uio) (uio)->uio_vmspace = proc0.p_vmspace
+#define        UIO_SETUP_SYSSPACE(uio) (uio)->uio_vmspace = vmspace_kernel()
 
 #endif /* __UIO_EXPOSE */
 



Home | Main Index | Thread Index | Old Index