Module Name: src
Committed By: scole
Date: Wed May 22 15:32:14 UTC 2019
Modified Files:
src/sys/kern: subr_lockdebug.c
Log Message:
Increase LD_BATCH_SHIFT for ia64 LOCKDEBUG kernels. Otherwise, ia64 pmap will
run out of space with this kernel debug option enabled.
Discussed with <chs> over email.
To generate a diff of this commit:
cvs rdiff -u -r1.70 -r1.71 src/sys/kern/subr_lockdebug.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_lockdebug.c
diff -u src/sys/kern/subr_lockdebug.c:1.70 src/sys/kern/subr_lockdebug.c:1.71
--- src/sys/kern/subr_lockdebug.c:1.70 Thu May 9 05:00:31 2019
+++ src/sys/kern/subr_lockdebug.c Wed May 22 15:32:14 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_lockdebug.c,v 1.70 2019/05/09 05:00:31 ozaki-r Exp $ */
+/* $NetBSD: subr_lockdebug.c,v 1.71 2019/05/22 15:32:14 scole Exp $ */
/*-
* Copyright (c) 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_lockdebug.c,v 1.70 2019/05/09 05:00:31 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_lockdebug.c,v 1.71 2019/05/22 15:32:14 scole Exp $");
#ifdef _KERNEL_OPT
#include "opt_ddb.h"
@@ -59,7 +59,11 @@ unsigned int ld_panic;
#ifdef LOCKDEBUG
+#ifdef __ia64__
+#define LD_BATCH_SHIFT 16
+#else
#define LD_BATCH_SHIFT 9
+#endif
#define LD_BATCH (1 << LD_BATCH_SHIFT)
#define LD_BATCH_MASK (LD_BATCH - 1)
#define LD_MAX_LOCKS 1048576