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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to