Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern A few more KASSERT/KASSERTMSG.
details: https://anonhg.NetBSD.org/src/rev/57816a0f1d63
branches: trunk
changeset: 781280:57816a0f1d63
user: matt <matt%NetBSD.org@localhost>
date: Thu Aug 30 02:26:02 2012 +0000
description:
A few more KASSERT/KASSERTMSG.
diffstat:
sys/kern/kern_lwp.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r 0216eb45454f -r 57816a0f1d63 sys/kern/kern_lwp.c
--- a/sys/kern/kern_lwp.c Thu Aug 30 02:25:35 2012 +0000
+++ b/sys/kern/kern_lwp.c Thu Aug 30 02:26:02 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_lwp.c,v 1.171 2012/07/22 22:40:19 rmind Exp $ */
+/* $NetBSD: kern_lwp.c,v 1.172 2012/08/30 02:26:02 matt Exp $ */
/*-
* Copyright (c) 2001, 2006, 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -211,7 +211,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_lwp.c,v 1.171 2012/07/22 22:40:19 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_lwp.c,v 1.172 2012/08/30 02:26:02 matt Exp $");
#include "opt_ddb.h"
#include "opt_lockdebug.h"
@@ -919,6 +919,7 @@
void
lwp_startup(struct lwp *prev, struct lwp *new)
{
+ KASSERTMSG(new == curlwp, "l %p curlwp %p prevlwp %p", new, curlwp, prev);
SDT_PROBE(proc,,,lwp_start, new, 0,0,0,0);
@@ -983,6 +984,7 @@
mutex_enter(p->p_lock);
if (p->p_nlwps - p->p_nzlwps == 1) {
KASSERT(current == true);
+ KASSERT(p != &proc0);
/* XXXSMP kernel_lock not held */
exit1(l, 0);
/* NOTREACHED */
Home |
Main Index |
Thread Index |
Old Index