Module Name:    src
Committed By:   pooka
Date:           Fri Jan 28 18:48:21 UTC 2011

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

Log Message:
Don't NULL out l_cpu, l_stat is the new rumpkernel way too.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/rump/librump/rumpkern/lwproc.c
cvs rdiff -u -r1.224 -r1.225 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/lwproc.c
diff -u src/sys/rump/librump/rumpkern/lwproc.c:1.12 src/sys/rump/librump/rumpkern/lwproc.c:1.13
--- src/sys/rump/librump/rumpkern/lwproc.c:1.12	Fri Jan 28 16:58:28 2011
+++ src/sys/rump/librump/rumpkern/lwproc.c	Fri Jan 28 18:48:21 2011
@@ -1,4 +1,4 @@
-/*      $NetBSD: lwproc.c,v 1.12 2011/01/28 16:58:28 pooka Exp $	*/
+/*      $NetBSD: lwproc.c,v 1.13 2011/01/28 18:48:21 pooka Exp $	*/
 
 /*
  * Copyright (c) 2010, 2011 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lwproc.c,v 1.12 2011/01/28 16:58:28 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lwproc.c,v 1.13 2011/01/28 18:48:21 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/atomic.h>
@@ -347,9 +347,9 @@
 	mutex_exit(newlwp->l_proc->p_lock);
 
 	l->l_mutex = &unruntime_lock;
-	l->l_cpu = NULL;
 	l->l_pflag &= ~LP_RUNNING;
 	l->l_flag &= ~LW_PENDSIG;
+	l->l_stat = LSRUN;
 
 	if (l->l_flag & LW_WEXIT) {
 		lwproc_freelwp(l);

Index: src/sys/rump/librump/rumpkern/rump.c
diff -u src/sys/rump/librump/rumpkern/rump.c:1.224 src/sys/rump/librump/rumpkern/rump.c:1.225
--- src/sys/rump/librump/rumpkern/rump.c:1.224	Fri Jan 28 18:45:52 2011
+++ src/sys/rump/librump/rumpkern/rump.c	Fri Jan 28 18:48:21 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: rump.c,v 1.224 2011/01/28 18:45:52 pooka Exp $	*/
+/*	$NetBSD: rump.c,v 1.225 2011/01/28 18:48:21 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.224 2011/01/28 18:45:52 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rump.c,v 1.225 2011/01/28 18:48:21 pooka Exp $");
 
 #include <sys/systm.h>
 #define ELFSIZE ARCH_ELFSIZE
@@ -346,7 +346,6 @@
 
 	rump_scheduler_init(numcpu);
 	/* revert temporary context and schedule a semireal context */
-	l->l_cpu = NULL;
 	rumpuser_set_curlwp(NULL);
 	initproc = &proc0; /* borrow proc0 before we get initproc started */
 	rump_schedule();

Reply via email to