[PATCH 01/11] x86/xip: add XIP_KERNEL and XIP_BASE options

From: Jim Kukunas
Date: Mon Mar 23 2015 - 03:57:34 EST


The CONFIG_XIP_KERNEL Kconfig option enables eXecute-In-Place
(XIP) support. When XIP_KERNEL is set, XIP_BASE points to the
physical address of the vmlinux ELF file.

Signed-off-by: Jim Kukunas <james.t.kukunas@xxxxxxxxxxxxxxx>
---
arch/x86/Kconfig | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)

diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index b7d31ca..f5fa02c 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -294,6 +294,25 @@ config ZONE_DMA

If unsure, say Y.

+config XIP_KERNEL
+ bool "eXecute-In-Place (XIP) support" if (X86_32 && EXPERT && EMBEDDED)
+ depends on !MODULES && !X86_PAE && !SMP
+ default n
+ help
+ With this option enabled, the text and any read-only segments of
+ the kernel are not copied from their initial location to their usual
+ location in RAM. As a result, when the kernel is located in storage
+ that is addressable by the CPU, the kernel text and read-only data
+ segments are never loaded into memory, thereby using less RAM.
+
+ Only enable this option if you know what you're doing.
+
+config XIP_BASE
+ hex "Physical address of XIP kernel" if XIP_KERNEL
+ default "0xFF800000"
+ help
+ The physical address for the beginning of the vmlinux file.
+
config SMP
bool "Symmetric multi-processing support"
---help---
--
2.1.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/