Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jul 2011 14:33:37 +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-7@freebsd.org
Subject:   svn commit: r224310 - stable/7/sys/sparc64/include
Message-ID:  <201107251433.p6PEXbh0060285@svn.freebsd.org>

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

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/7/sys/sparc64/include/vmparam.h
Directory Properties:
  stable/7/sys/   (props changed)
  stable/7/sys/cddl/contrib/opensolaris/   (props changed)
  stable/7/sys/contrib/dev/acpica/   (props changed)
  stable/7/sys/contrib/pf/   (props changed)

Modified: stable/7/sys/sparc64/include/vmparam.h
==============================================================================
--- stable/7/sys/sparc64/include/vmparam.h	Mon Jul 25 14:30:44 2011	(r224309)
+++ stable/7/sys/sparc64/include/vmparam.h	Mon Jul 25 14:33:37 2011	(r224310)
@@ -230,6 +230,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?201107251433.p6PEXbh0060285>