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 Change assertion as rump_component...



details:   https://anonhg.NetBSD.org/src/rev/7d3eb45c2bb8
branches:  trunk
changeset: 330218:7d3eb45c2bb8
user:      justin <justin%NetBSD.org@localhost>
date:      Sun Jun 29 11:36:52 2014 +0000

description:
Change assertion as rump_component_load may be called before curlwp available

diffstat:

 sys/rump/librump/rumpkern/rump.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 74f0322775fb -r 7d3eb45c2bb8 sys/rump/librump/rumpkern/rump.c
--- a/sys/rump/librump/rumpkern/rump.c  Sun Jun 29 11:18:40 2014 +0000
+++ b/sys/rump/librump/rumpkern/rump.c  Sun Jun 29 11:36:52 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rump.c,v 1.306 2014/06/13 15:45:02 pooka Exp $ */
+/*     $NetBSD: rump.c,v 1.307 2014/06/29 11:36:52 justin 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.306 2014/06/13 15:45:02 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rump.c,v 1.307 2014/06/29 11:36:52 justin Exp $");
 
 #include <sys/systm.h>
 #define ELFSIZE ARCH_ELFSIZE
@@ -531,7 +531,7 @@
         */
        rc = __UNCONST(rc_const);
 
-       KASSERT(curlwp == bootlwp);
+       KASSERT(!rump_inited || curlwp == bootlwp);
 
        LIST_FOREACH(rc_iter, &rchead, rc_entries) {
                if (rc_iter == rc)



Home | Main Index | Thread Index | Old Index