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 panic if cv_wait() is called in no...
details: https://anonhg.NetBSD.org/src/rev/2ed5805df09f
branches: trunk
changeset: 747783:2ed5805df09f
user: pooka <pooka%NetBSD.org@localhost>
date: Fri Oct 02 09:56:08 2009 +0000
description:
panic if cv_wait() is called in non-threaded mode
diffstat:
sys/rump/librump/rumpkern/locks.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 5338810876ed -r 2ed5805df09f sys/rump/librump/rumpkern/locks.c
--- a/sys/rump/librump/rumpkern/locks.c Fri Oct 02 09:38:29 2009 +0000
+++ b/sys/rump/librump/rumpkern/locks.c Fri Oct 02 09:56:08 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locks.c,v 1.27 2009/02/07 01:50:29 pooka Exp $ */
+/* $NetBSD: locks.c,v 1.28 2009/10/02 09:56:08 pooka Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -55,7 +55,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: locks.c,v 1.27 2009/02/07 01:50:29 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: locks.c,v 1.28 2009/10/02 09:56:08 pooka Exp $");
#include <sys/param.h>
#include <sys/atomic.h>
@@ -235,6 +235,8 @@
cv_wait(kcondvar_t *cv, kmutex_t *mtx)
{
+ if (rump_threads == 0)
+ panic("cv_wait without threads");
rumpuser_cv_wait(RUMPCV(cv), RUMPMTX(mtx));
}
Home |
Main Index |
Thread Index |
Old Index