Module Name:    src
Committed By:   pooka
Date:           Mon Apr 12 22:17:23 UTC 2010

Modified Files:
        src/sys/rump/librump/rumpkern: Makefile.rumpkern rump.c

Log Message:
support lwp specificdata


To generate a diff of this commit:
cvs rdiff -u -r1.74 -r1.75 src/sys/rump/librump/rumpkern/Makefile.rumpkern
cvs rdiff -u -r1.158 -r1.159 src/sys/rump/librump/rumpkern/rump.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/rump/librump/rumpkern/Makefile.rumpkern
diff -u src/sys/rump/librump/rumpkern/Makefile.rumpkern:1.74 src/sys/rump/librump/rumpkern/Makefile.rumpkern:1.75
--- src/sys/rump/librump/rumpkern/Makefile.rumpkern:1.74	Tue Feb 16 20:42:47 2010
+++ src/sys/rump/librump/rumpkern/Makefile.rumpkern	Mon Apr 12 22:17:23 2010
@@ -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

Index: src/sys/rump/librump/rumpkern/rump.c
diff -u src/sys/rump/librump/rumpkern/rump.c:1.158 src/sys/rump/librump/rumpkern/rump.c:1.159
--- src/sys/rump/librump/rumpkern/rump.c:1.158	Wed Mar 31 18:56:07 2010
+++ src/sys/rump/librump/rumpkern/rump.c	Mon Apr 12 22:17:23 2010
@@ -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));
 }
 

Reply via email to