From owner-svn-src-all@FreeBSD.ORG Thu Jan 22 15:36:12 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 859121065692; Thu, 22 Jan 2009 15:36:12 +0000 (UTC) (envelope-from cognet@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 753628FC32; Thu, 22 Jan 2009 15:36:12 +0000 (UTC) (envelope-from cognet@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n0MFaCOL016028; Thu, 22 Jan 2009 15:36:12 GMT (envelope-from cognet@svn.freebsd.org) Received: (from cognet@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n0MFaCb0016027; Thu, 22 Jan 2009 15:36:12 GMT (envelope-from cognet@svn.freebsd.org) Message-Id: <200901221536.n0MFaCb0016027@svn.freebsd.org> From: Olivier Houchard Date: Thu, 22 Jan 2009 15:36:12 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r187592 - head/sys/arm/include X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jan 2009 15:36:15 -0000 Author: cognet Date: Thu Jan 22 15:36:11 2009 New Revision: 187592 URL: http://svn.freebsd.org/changeset/base/187592 Log: Add a comment explaining what ARM_KERN_DIRECTMAP is all about. Suggested by: raj Modified: head/sys/arm/include/vmparam.h Modified: head/sys/arm/include/vmparam.h ============================================================================== --- head/sys/arm/include/vmparam.h Thu Jan 22 15:35:54 2009 (r187591) +++ head/sys/arm/include/vmparam.h Thu Jan 22 15:36:11 2009 (r187592) @@ -97,6 +97,13 @@ #define VM_MIN_ADDRESS (0x00001000) #ifdef ARM_USE_SMALL_ALLOC +/* + * ARM_KERN_DIRECTMAP is used to make sure there's enough space between + * VM_MAXUSER_ADDRESS and KERNBASE to map the whole memory. + * It has to be a compile-time constant, even if arm_init_smallalloc(), + * which will do the mapping, gets the real amount of memory at runtime, + * because VM_MAXUSER_ADDRESS is a constant. + */ #ifndef ARM_KERN_DIRECTMAP #define ARM_KERN_DIRECTMAP 512 * 1024 * 1024 /* 512 MB */ #endif