[RFC PATCH 05/11] ARM: provide XIP_VIRT_ADDR for no-MMU builds
Uwe Kleine-König
u.kleine-koenig at pengutronix.de
Sun Jan 22 06:13:31 EST 2012
XIP_VIRT_ADDR is needed for XIP builds and currently only defined for
builds with CONFIG_MMU.
Also provide it for no-MMU builds to make it possible to build an XIP
kernel for MMU-less machines. As these lack an MMU it has to be an
identity mapping.
Forwarded: id:1323467451-12128-1-git-send-email-u.kleine-koenig at pengutronix.de
Acked-by: Nicolas Pitre <nico at linaro.org>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
---
arch/arm/include/asm/memory.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/arch/arm/include/asm/memory.h b/arch/arm/include/asm/memory.h
index a8997d7..fcb5757 100644
--- a/arch/arm/include/asm/memory.h
+++ b/arch/arm/include/asm/memory.h
@@ -116,6 +116,8 @@
#define MODULES_END (END_MEM)
#define MODULES_VADDR (PHYS_OFFSET)
+#define XIP_VIRT_ADDR(physaddr) (physaddr)
+
#endif /* !CONFIG_MMU */
/*
--
1.7.8.3
More information about the linux-arm-kernel
mailing list