Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jul 2011 14:30:45 +0000 (UTC)
From:      Marius Strobl <marius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r224309 - stable/8/sys/sparc64/include
Message-ID:  <201107251430.p6PEUjYM060015@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marius
Date: Mon Jul 25 14:30:44 2011
New Revision: 224309
URL: http://svn.freebsd.org/changeset/base/224309

Log:
  MFC: r216016
  
  Define VM_KMEM_SIZE_MAX on sparc64. Otherwise kernel built with
  DEBUG_MEMGUARD panics early in kmeminit() with the message
  "kmem_suballoc: bad status return of 1" because of zero "size" argument
  passed to kmem_suballoc() due to "vm_kmem_size_max" being zero.
  
  The problem also exists on ia64.

Modified:
  stable/8/sys/sparc64/include/vmparam.h
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/geom/label/   (props changed)

Modified: stable/8/sys/sparc64/include/vmparam.h
==============================================================================
--- stable/8/sys/sparc64/include/vmparam.h	Mon Jul 25 13:50:54 2011	(r224308)
+++ stable/8/sys/sparc64/include/vmparam.h	Mon Jul 25 14:30:44 2011	(r224309)
@@ -226,6 +226,14 @@
 #endif
 
 /*
+ * Ceiling on amount of kmem_map kva space.
+ */
+#ifndef VM_KMEM_SIZE_MAX
+#define	VM_KMEM_SIZE_MAX	((VM_MAX_KERNEL_ADDRESS - \
+    VM_MIN_KERNEL_ADDRESS + 1) * 3 / 5)
+#endif
+
+/*
  * Initial pagein size of beginning of executable file.
  */
 #ifndef	VM_INITIAL_PAGEIN



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107251430.p6PEUjYM060015>