svn commit: r280278 - in head/sys: arm/include conf
Zbigniew Bodek
zbb at FreeBSD.org
Fri Mar 20 10:15:36 UTC 2015
Author: zbb
Date: Fri Mar 20 10:15:34 2015
New Revision: 280278
URL: https://svnweb.freebsd.org/changeset/base/280278
Log:
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 at semihalf.com>
Reviewed by: imp
Obtained from: Semihalf
Modified:
head/sys/arm/include/vmparam.h
head/sys/conf/options.arm
Modified: head/sys/arm/include/vmparam.h
==============================================================================
--- head/sys/arm/include/vmparam.h Fri Mar 20 08:29:07 2015 (r280277)
+++ head/sys/arm/include/vmparam.h Fri Mar 20 10:15:34 2015 (r280278)
@@ -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
Modified: head/sys/conf/options.arm
==============================================================================
--- head/sys/conf/options.arm Fri Mar 20 08:29:07 2015 (r280277)
+++ head/sys/conf/options.arm Fri Mar 20 10:15:34 2015 (r280278)
@@ -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
More information about the svn-src-all
mailing list