Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Fix DIAGNOSTIC. Moral of the story: don't comment ...



details:   https://anonhg.NetBSD.org/src/rev/1eacbabd03ef
branches:  trunk
changeset: 755601:1eacbabd03ef
user:      pooka <pooka%NetBSD.org@localhost>
date:      Fri Jun 11 07:32:32 2010 +0000

description:
Fix DIAGNOSTIC.  Moral of the story: don't comment xen kernels out of the
build even if you'd like to go to sleep earlier.

diffstat:

 sys/kern/kern_lwp.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 763e03eafb8e -r 1eacbabd03ef sys/kern/kern_lwp.c
--- a/sys/kern/kern_lwp.c       Thu Jun 10 23:50:04 2010 +0000
+++ b/sys/kern/kern_lwp.c       Fri Jun 11 07:32:32 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_lwp.c,v 1.147 2010/06/10 20:54:53 pooka Exp $     */
+/*     $NetBSD: kern_lwp.c,v 1.148 2010/06/11 07:32:32 pooka Exp $     */
 
 /*-
  * Copyright (c) 2001, 2006, 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -209,7 +209,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_lwp.c,v 1.147 2010/06/10 20:54:53 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_lwp.c,v 1.148 2010/06/11 07:32:32 pooka Exp $");
 
 #include "opt_ddb.h"
 #include "opt_lockdebug.h"
@@ -296,7 +296,7 @@
        struct lwp *l = &lwp0;
 
        KASSERT((void *)uvm_lwp_getuarea(l) != NULL);
-       KASSERT(l->l_lid == p->p_nlwpid);
+       KASSERT(l->l_lid == proc0.p_nlwpid);
 
        LIST_INSERT_HEAD(&alllwp, l, l_list);
 



Home | Main Index | Thread Index | Old Index