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 Fix minor bug in previous: make su...
details: https://anonhg.NetBSD.org/src/rev/07b63346293a
branches: trunk
changeset: 789831:07b63346293a
user: pooka <pooka%NetBSD.org@localhost>
date: Mon Sep 09 19:18:08 2013 +0000
description:
Fix minor bug in previous: make sure we come out of rump_init()
without a bound lwp set.
diffstat:
sys/rump/librump/rumpkern/rump.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r d5ee8931ca76 -r 07b63346293a sys/rump/librump/rumpkern/rump.c
--- a/sys/rump/librump/rumpkern/rump.c Mon Sep 09 17:54:38 2013 +0000
+++ b/sys/rump/librump/rumpkern/rump.c Mon Sep 09 19:18:08 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rump.c,v 1.274 2013/09/07 17:58:00 pooka Exp $ */
+/* $NetBSD: rump.c,v 1.275 2013/09/09 19:18:08 pooka Exp $ */
/*
* Copyright (c) 2007-2011 Antti Kantee. All Rights Reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rump.c,v 1.274 2013/09/07 17:58:00 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rump.c,v 1.275 2013/09/09 19:18:08 pooka Exp $");
#include <sys/systm.h>
#define ELFSIZE ARCH_ELFSIZE
@@ -546,8 +546,10 @@
bootlwp = NULL;
/* open 0/1/2 for init */
+ KASSERT(rump_lwproc_curlwp() == NULL);
rump_lwproc_switch(initlwp);
rump_consdev_init();
+ rump_lwproc_switch(NULL);
/* release cpu */
rump_unschedule();
Home |
Main Index |
Thread Index |
Old Index