From 8f5c3973fbcfbb2a862bdf12cf1a4046423e06a8 Mon Sep 17 00:00:00 2001 From: zbb Date: Fri, 20 Mar 2015 10:15:34 +0000 Subject: [PATCH] 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 Reviewed by: imp Obtained from: Semihalf --- sys/arm/include/vmparam.h | 2 ++ sys/conf/options.arm | 1 + 2 files changed, 3 insertions(+) diff --git a/sys/arm/include/vmparam.h b/sys/arm/include/vmparam.h index 9bfd358eef5a..25e2c2496a3c 100644 --- a/sys/arm/include/vmparam.h +++ b/sys/arm/include/vmparam.h @@ -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 diff --git a/sys/conf/options.arm b/sys/conf/options.arm index dab5a7f1f76b..40e07397203d 100644 --- a/sys/conf/options.arm +++ b/sys/conf/options.arm @@ -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