Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Jan 2009 15:36:12 +0000 (UTC)
From:      Olivier Houchard <cognet@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r187592 - head/sys/arm/include
Message-ID:  <200901221536.n0MFaCb0016027@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



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