Module Name: src
Committed By: matt
Date: Thu Feb 17 18:55:32 UTC 2011
Modified Files:
src/sys/kern: subr_kmem.c
Log Message:
Init kmem_guard_depth to 0 so it will be placed in .data so it can be
patched with gdb.
To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/sys/kern/subr_kmem.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/kern/subr_kmem.c
diff -u src/sys/kern/subr_kmem.c:1.33 src/sys/kern/subr_kmem.c:1.34
--- src/sys/kern/subr_kmem.c:1.33 Thu Feb 11 23:13:46 2010
+++ src/sys/kern/subr_kmem.c Thu Feb 17 18:55:31 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_kmem.c,v 1.33 2010/02/11 23:13:46 haad Exp $ */
+/* $NetBSD: subr_kmem.c,v 1.34 2011/02/17 18:55:31 matt Exp $ */
/*-
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -63,7 +63,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_kmem.c,v 1.33 2010/02/11 23:13:46 haad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_kmem.c,v 1.34 2011/02/17 18:55:31 matt Exp $");
#include <sys/param.h>
#include <sys/callback.h>
@@ -101,7 +101,7 @@
static int kmem_cache_shift;
#if defined(DEBUG)
-int kmem_guard_depth;
+int kmem_guard_depth = 0;
size_t kmem_guard_size;
static struct uvm_kmguard kmem_guard;
static void *kmem_freecheck;