Don't NULL out l_cpu, l_stat is the new rumpkernel way too.
This commit is contained in:
parent
cedf6bdaf9
commit
464ac5f9d7
|
@ -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.
|
* Copyright (c) 2010, 2011 Antti Kantee. All Rights Reserved.
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#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/param.h>
|
||||||
#include <sys/atomic.h>
|
#include <sys/atomic.h>
|
||||||
|
@ -347,9 +347,9 @@ rump_lwproc_switch(struct lwp *newlwp)
|
||||||
mutex_exit(newlwp->l_proc->p_lock);
|
mutex_exit(newlwp->l_proc->p_lock);
|
||||||
|
|
||||||
l->l_mutex = &unruntime_lock;
|
l->l_mutex = &unruntime_lock;
|
||||||
l->l_cpu = NULL;
|
|
||||||
l->l_pflag &= ~LP_RUNNING;
|
l->l_pflag &= ~LP_RUNNING;
|
||||||
l->l_flag &= ~LW_PENDSIG;
|
l->l_flag &= ~LW_PENDSIG;
|
||||||
|
l->l_stat = LSRUN;
|
||||||
|
|
||||||
if (l->l_flag & LW_WEXIT) {
|
if (l->l_flag & LW_WEXIT) {
|
||||||
lwproc_freelwp(l);
|
lwproc_freelwp(l);
|
||||||
|
|
|
@ -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.
|
* Copyright (c) 2007 Antti Kantee. All Rights Reserved.
|
||||||
|
@ -28,7 +28,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#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>
|
#include <sys/systm.h>
|
||||||
#define ELFSIZE ARCH_ELFSIZE
|
#define ELFSIZE ARCH_ELFSIZE
|
||||||
|
@ -346,7 +346,6 @@ rump__init(int rump_version)
|
||||||
|
|
||||||
rump_scheduler_init(numcpu);
|
rump_scheduler_init(numcpu);
|
||||||
/* revert temporary context and schedule a semireal context */
|
/* revert temporary context and schedule a semireal context */
|
||||||
l->l_cpu = NULL;
|
|
||||||
rumpuser_set_curlwp(NULL);
|
rumpuser_set_curlwp(NULL);
|
||||||
initproc = &proc0; /* borrow proc0 before we get initproc started */
|
initproc = &proc0; /* borrow proc0 before we get initproc started */
|
||||||
rump_schedule();
|
rump_schedule();
|
||||||
|
|
Loading…
Reference in New Issue