Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Increase LD_BATCH_SHIFT for ia64 LOCKDEBUG kernels....



details:   https://anonhg.NetBSD.org/src/rev/fede49e3525a
branches:  trunk
changeset: 451428:fede49e3525a
user:      scole <scole%NetBSD.org@localhost>
date:      Wed May 22 15:32:14 2019 +0000

description:
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.

diffstat:

 sys/kern/subr_lockdebug.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r 3c5486846729 -r fede49e3525a sys/kern/subr_lockdebug.c
--- a/sys/kern/subr_lockdebug.c Wed May 22 15:17:48 2019 +0000
+++ b/sys/kern/subr_lockdebug.c Wed May 22 15:32:14 2019 +0000
@@ -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 @@
 
 #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



Home | Main Index | Thread Index | Old Index