Source-Changes-HG archive

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

[src/trunk]: src/sys/kern xc_highpri: fix assert.



details:   https://anonhg.NetBSD.org/src/rev/83fd0fb23d72
branches:  trunk
changeset: 785944:83fd0fb23d72
user:      rmind <rmind%NetBSD.org@localhost>
date:      Sun Apr 07 00:31:40 2013 +0000

description:
xc_highpri: fix assert.

diffstat:

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

diffs (27 lines):

diff -r f3e80033eeb8 -r 83fd0fb23d72 sys/kern/subr_xcall.c
--- a/sys/kern/subr_xcall.c     Sun Apr 07 00:18:55 2013 +0000
+++ b/sys/kern/subr_xcall.c     Sun Apr 07 00:31:40 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_xcall.c,v 1.14 2013/02/19 11:20:17 martin Exp $   */
+/*     $NetBSD: subr_xcall.c,v 1.15 2013/04/07 00:31:40 rmind Exp $    */
 
 /*-
  * Copyright (c) 2007-2010 The NetBSD Foundation, Inc.
@@ -74,7 +74,7 @@
  */
  
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_xcall.c,v 1.14 2013/02/19 11:20:17 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_xcall.c,v 1.15 2013/04/07 00:31:40 rmind Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -417,7 +417,7 @@
        }
        kpreempt_enable();
 #else
-       KASSERT(curcpu() == ci);
+       KASSERT(ci == NULL || curcpu() == ci);
        xc_ipi_handler();
 #endif
 #endif



Home | Main Index | Thread Index | Old Index