Module Name: src
Committed By: yamt
Date: Sat Feb 5 13:47:57 UTC 2011
Modified Files:
src/sys/arch/x86/x86: vm_machdep.c
Log Message:
cpu_lwp_free2: add assertions
To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/x86/x86/vm_machdep.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/arch/x86/x86/vm_machdep.c
diff -u src/sys/arch/x86/x86/vm_machdep.c:1.11 src/sys/arch/x86/x86/vm_machdep.c:1.12
--- src/sys/arch/x86/x86/vm_machdep.c:1.11 Tue Jan 18 23:56:48 2011
+++ src/sys/arch/x86/x86/vm_machdep.c Sat Feb 5 13:47:57 2011
@@ -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);
}
/*