Skip to content

Commit

Permalink
ARM: 7361/1: provide XIP_VIRT_ADDR for no-MMU builds
Browse files Browse the repository at this point in the history
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.

Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Uwe Kleine-König authored and Russell King committed Mar 24, 2012
1 parent 695436e commit 38b4205
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/arm/include/asm/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@
#define MODULES_END (END_MEM)
#define MODULES_VADDR (PHYS_OFFSET)

#define XIP_VIRT_ADDR(physaddr) (physaddr)

#endif /* !CONFIG_MMU */

/*
Expand Down

0 comments on commit 38b4205

Please sign in to comment.