Module Name: src Committed By: pooka Date: Sun Jul 11 16:20:39 UTC 2010
Modified Files: src/sys/rump/librump/rumpkern: scheduler.c Log Message: Assert that l_target_cpu isn't null, just in case we had some memory corruption issues (like passing wrong size to kmem_free ....). To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 src/sys/rump/librump/rumpkern/scheduler.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/rump/librump/rumpkern/scheduler.c diff -u src/sys/rump/librump/rumpkern/scheduler.c:1.16 src/sys/rump/librump/rumpkern/scheduler.c:1.17 --- src/sys/rump/librump/rumpkern/scheduler.c:1.16 Fri May 28 18:17:24 2010 +++ src/sys/rump/librump/rumpkern/scheduler.c Sun Jul 11 16:20:39 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: scheduler.c,v 1.16 2010/05/28 18:17:24 pooka Exp $ */ +/* $NetBSD: scheduler.c,v 1.17 2010/07/11 16:20:39 pooka Exp $ */ /* * Copyright (c) 2010 Antti Kantee. All Rights Reserved. @@ -26,7 +26,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: scheduler.c,v 1.16 2010/05/28 18:17:24 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: scheduler.c,v 1.17 2010/07/11 16:20:39 pooka Exp $"); #include <sys/param.h> #include <sys/atomic.h> @@ -257,6 +257,7 @@ * view of the world. */ + KASSERT(l->l_target_cpu != NULL); rcpu = &rcpu_storage[l->l_target_cpu-&rump_cpus[0]]; if (atomic_cas_ptr(&rcpu->rcpu_prevlwp, l, RCPULWP_BUSY) == l) { if (__predict_true(interlock == rcpu->rcpu_mtx))