Allow to override default kernel virtual address assignment on ARM

Each plaform performs virtual memory split between kernel and user space
and assigns kernel certain amount of memory space. However, is is sometimes
reasonable to change the default values. Such situation may happen on
systems where the demand for kernel buffers is high, many devices occupying
memory etc. This of course comes with the cost of decreasing user space
memory range so shall be used with care. Most embedded systems will not
suffer from this limtation but rather take advantage of this potential
since default behavior is left unchanged.

Submitted by:  Wojciech Macek <wma@semihalf.com>
Reviewed by:   imp
Obtained from: Semihalf
This commit is contained in:
zbb 2015-03-20 10:15:34 +00:00
parent d7efe7e99e
commit 8f5c3973fb
2 changed files with 3 additions and 0 deletions

View File

@ -68,7 +68,9 @@
* The line between user space and kernel space
* Mappings >= KERNEL_BASE are constant across all processes
*/
#ifndef KERNBASE
#define KERNBASE 0xc0000000
#endif
/*
* max number of non-contig chunks of physical RAM you can have

View File

@ -28,6 +28,7 @@ IPI_IRQ_START opt_smp.h
IPI_IRQ_END opt_smp.h
FREEBSD_BOOT_LOADER opt_global.h
IXP4XX_FLASH_SIZE opt_global.h
KERNBASE opt_global.h
KERNPHYSADDR opt_global.h
KERNVIRTADDR opt_global.h
LINUX_BOOT_ABI opt_global.h