Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Add a KASSERT when copying l1->l_cpu to l2->l_cpu
details: https://anonhg.NetBSD.org/src/rev/5ec62cd1cb57
branches: trunk
changeset: 542473:5ec62cd1cb57
user: matt <matt%NetBSD.org@localhost>
date: Thu Jan 30 05:51:58 2003 +0000
description:
Add a KASSERT when copying l1->l_cpu to l2->l_cpu
diffstat:
sys/kern/kern_lwp.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (17 lines):
diff -r 91ecfb91945c -r 5ec62cd1cb57 sys/kern/kern_lwp.c
--- a/sys/kern/kern_lwp.c Thu Jan 30 02:52:40 2003 +0000
+++ b/sys/kern/kern_lwp.c Thu Jan 30 05:51:58 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_lwp.c,v 1.4 2003/01/29 23:27:54 nathanw Exp $ */
+/* $NetBSD: kern_lwp.c,v 1.5 2003/01/30 05:51:58 matt Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -459,6 +459,7 @@
* initialized in the low-level context switch code when the
* process runs.
*/
+ KASSERT(l1->l_cpu != NULL);
l2->l_cpu = l1->l_cpu;
#else
/*
Home |
Main Index |
Thread Index |
Old Index