From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752482AbbCWH5c (ORCPT ); Mon, 23 Mar 2015 03:57:32 -0400 Received: from mga11.intel.com ([192.55.52.93]:61079 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752098AbbCWHzJ (ORCPT ); Mon, 23 Mar 2015 03:55:09 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,450,1422950400"; d="scan'208";a="544809130" From: Jim Kukunas To: Linux Kernel , tom.zanussi@linux.intel.com Cc: Arjan van de Ven , "H. Peter Anvin" , tglx@linutronix.de, mingo@redhat.com, x86@kernel.org Subject: [PATCH 01/11] x86/xip: add XIP_KERNEL and XIP_BASE options Date: Mon, 23 Mar 2015 00:46:30 -0700 Message-Id: <1427096800-30452-2-git-send-email-james.t.kukunas@linux.intel.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1427096800-30452-1-git-send-email-james.t.kukunas@linux.intel.com> References: <1427096800-30452-1-git-send-email-james.t.kukunas@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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