1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00

Add a comment explaining what ARM_KERN_DIRECTMAP is all about.

Suggested by:	raj
This commit is contained in:
Olivier Houchard 2009-01-22 15:36:11 +00:00
parent 66a86c3bc1
commit 7202abb694
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=187592

View File

@ -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