Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/x86 cpu_lwp_free2: add assertions
details: https://anonhg.NetBSD.org/src/rev/63e8c0fe6dcc
branches: trunk
changeset: 761690:63e8c0fe6dcc
user: yamt <yamt%NetBSD.org@localhost>
date: Sat Feb 05 13:47:57 2011 +0000
description:
cpu_lwp_free2: add assertions
diffstat:
sys/arch/x86/x86/vm_machdep.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r baf4ad7970d4 -r 63e8c0fe6dcc sys/arch/x86/x86/vm_machdep.c
--- a/sys/arch/x86/x86/vm_machdep.c Sat Feb 05 13:46:44 2011 +0000
+++ b/sys/arch/x86/x86/vm_machdep.c Sat Feb 05 13:47:57 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vm_machdep.c,v 1.11 2011/01/18 23:56:48 matt Exp $ */
+/* $NetBSD: vm_machdep.c,v 1.12 2011/02/05 13:47:57 yamt Exp $ */
/*-
* Copyright (c) 1982, 1986 The Regents of the University of California.
@@ -80,7 +80,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.11 2011/01/18 23:56:48 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.12 2011/02/05 13:47:57 yamt Exp $");
#include "opt_mtrr.h"
@@ -275,7 +275,8 @@
cpu_lwp_free2(struct lwp *l)
{
- /* nothing */
+ KASSERT(l->l_md.md_gc_ptp == NULL);
+ KASSERT(l->l_md.md_gc_pmap == NULL);
}
/*
Home |
Main Index |
Thread Index |
Old Index