From owner-svn-src-head@FreeBSD.ORG Sun Nov 28 19:45:44 2010 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C0E7F106566C; Sun, 28 Nov 2010 19:45:44 +0000 (UTC) (envelope-from marius@alchemy.franken.de) Received: from alchemy.franken.de (alchemy.franken.de [194.94.249.214]) by mx1.freebsd.org (Postfix) with ESMTP id 530BB8FC12; Sun, 28 Nov 2010 19:45:43 +0000 (UTC) Received: from alchemy.franken.de (localhost [127.0.0.1]) by alchemy.franken.de (8.14.4/8.14.4/ALCHEMY.FRANKEN.DE) with ESMTP id oASJjhrL007335; Sun, 28 Nov 2010 20:45:43 +0100 (CET) (envelope-from marius@alchemy.franken.de) Received: (from marius@localhost) by alchemy.franken.de (8.14.4/8.14.4/Submit) id oASJjhiB007334; Sun, 28 Nov 2010 20:45:43 +0100 (CET) (envelope-from marius) Date: Sun, 28 Nov 2010 20:45:43 +0100 From: Marius Strobl To: Max Khon Message-ID: <20101128194542.GF9966@alchemy.franken.de> References: <201011281926.oASJQKiE040689@svn.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201011281926.oASJQKiE040689@svn.freebsd.org> User-Agent: Mutt/1.4.2.3i Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r216016 - head/sys/sparc64/include X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Nov 2010 19:45:44 -0000 On Sun, Nov 28, 2010 at 07:26:20PM +0000, Max Khon wrote: > Author: fjoe > Date: Sun Nov 28 19:26:20 2010 > New Revision: 216016 > URL: http://svn.freebsd.org/changeset/base/216016 > > Log: > 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: > head/sys/sparc64/include/vmparam.h > > Modified: head/sys/sparc64/include/vmparam.h > ============================================================================== > --- head/sys/sparc64/include/vmparam.h Sun Nov 28 18:59:52 2010 (r216015) > +++ head/sys/sparc64/include/vmparam.h Sun Nov 28 19:26:20 2010 (r216016) > @@ -237,6 +237,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 How was that value determined? Marius