Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Init kmem_guard_depth to 0 so it will be placed in ...
details: https://anonhg.NetBSD.org/src/rev/49d192d8f201
branches: trunk
changeset: 762225:49d192d8f201
user: matt <matt%NetBSD.org@localhost>
date: Thu Feb 17 18:55:31 2011 +0000
description:
Init kmem_guard_depth to 0 so it will be placed in .data so it can be
patched with gdb.
diffstat:
sys/kern/subr_kmem.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 90e651db53d8 -r 49d192d8f201 sys/kern/subr_kmem.c
--- a/sys/kern/subr_kmem.c Thu Feb 17 18:50:02 2011 +0000
+++ b/sys/kern/subr_kmem.c Thu Feb 17 18:55:31 2011 +0000
@@ -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;
Home |
Main Index |
Thread Index |
Old Index