Source-Changes-HG archive

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

[src/trunk]: src/sys/rump/librump/rumpkern support lwp specificdata



details:   https://anonhg.NetBSD.org/src/rev/919b3dcb15dc
branches:  trunk
changeset: 753861:919b3dcb15dc
user:      pooka <pooka%NetBSD.org@localhost>
date:      Mon Apr 12 22:17:23 2010 +0000

description:
support lwp specificdata

diffstat:

 sys/rump/librump/rumpkern/Makefile.rumpkern |  7 ++++---
 sys/rump/librump/rumpkern/rump.c            |  7 +++++--
 2 files changed, 9 insertions(+), 5 deletions(-)

diffs (63 lines):

diff -r c80db78f2d25 -r 919b3dcb15dc sys/rump/librump/rumpkern/Makefile.rumpkern
--- a/sys/rump/librump/rumpkern/Makefile.rumpkern       Mon Apr 12 22:15:31 2010 +0000
+++ b/sys/rump/librump/rumpkern/Makefile.rumpkern       Mon Apr 12 22:17:23 2010 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.rumpkern,v 1.74 2010/02/16 20:42:47 pooka Exp $
+#      $NetBSD: Makefile.rumpkern,v 1.75 2010/04/12 22:17:23 pooka Exp $
 #
 
 .include "${RUMPTOP}/Makefile.rump"
@@ -46,8 +46,9 @@
 # sys/kern subr (misc)
 SRCS+= subr_devsw.c subr_callback.c subr_copy.c subr_device.c          \
        subr_evcnt.c subr_extent.c subr_hash.c subr_humanize.c          \
-       subr_iostat.c subr_kobj.c subr_log.c subr_once.c subr_prf.c     \
-       subr_specificdata.c subr_time.c subr_workqueue.c subr_xcall.c
+       subr_iostat.c subr_kobj.c subr_log.c subr_lwp_specificdata.c    \
+       subr_once.c subr_prf.c subr_specificdata.c subr_time.c          \
+       subr_workqueue.c subr_xcall.c
 
 # sys/uvm
 SRCS+= uvm_readahead.c
diff -r c80db78f2d25 -r 919b3dcb15dc sys/rump/librump/rumpkern/rump.c
--- a/sys/rump/librump/rumpkern/rump.c  Mon Apr 12 22:15:31 2010 +0000
+++ b/sys/rump/librump/rumpkern/rump.c  Mon Apr 12 22:17:23 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rump.c,v 1.158 2010/03/31 18:56:07 pooka Exp $ */
+/*     $NetBSD: rump.c,v 1.159 2010/04/12 22:17:23 pooka Exp $ */
 
 /*
  * Copyright (c) 2007 Antti Kantee.  All Rights Reserved.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rump.c,v 1.158 2010/03/31 18:56:07 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rump.c,v 1.159 2010/04/12 22:17:23 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/atomic.h>
@@ -277,6 +277,7 @@
        LIST_INIT(&allproc);
        LIST_INSERT_HEAD(&allproc, &proc0, p_list);
        proc_lock = mutex_obj_alloc(MUTEX_DEFAULT, IPL_NONE);
+       lwpinit_specificdata();
 
        rump_limits.pl_rlimit[RLIMIT_FSIZE].rlim_cur = RLIM_INFINITY;
        rump_limits.pl_rlimit[RLIMIT_NOFILE].rlim_cur = RLIM_INFINITY;
@@ -488,6 +489,7 @@
        l->l_lid = lid;
        l->l_fd = p->p_fd;
        l->l_cpu = NULL;
+       lwp_initspecific(l);
 
        return l;
 }
@@ -534,6 +536,7 @@
        KASSERT(l->l_mutex == NULL);
        if (l->l_name)
                kmem_free(l->l_name, MAXCOMLEN);
+       lwp_finispecific(l);
        kmem_free(l, sizeof(*l));
 }
 



Home | Main Index | Thread Index | Old Index