svn commit: r187592 - head/sys/arm/include
Olivier Houchard
cognet at FreeBSD.org
Thu Jan 22 07:36:15 PST 2009
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
More information about the svn-src-all
mailing list