[PATCH 3/5] ARM: nommu: simplify definition of MODULES_END

Uwe Kleine-König u.kleine-koenig at pengutronix.de
Thu Jun 5 02:06:11 PDT 2014


The definition of MODULES_END is the last user of CONFIG_DRAM_SIZE.
Just to define this limit hardly justifies to keep the compile time
setting about the RAM size which makes it harder to compile a kernel for
more than one machine. Still more as MODULES_END is hardly used on !MMU
apart from the memory layout info during boot up.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
---
 arch/arm/include/asm/memory.h | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/arch/arm/include/asm/memory.h b/arch/arm/include/asm/memory.h
index fc947b305f36..f5b8b145d9a2 100644
--- a/arch/arm/include/asm/memory.h
+++ b/arch/arm/include/asm/memory.h
@@ -99,14 +99,10 @@
 #define TASK_UNMAPPED_BASE	UL(0x00000000)
 #endif
 
-#ifndef END_MEM
-#define END_MEM     		(UL(CONFIG_DRAM_BASE) + CONFIG_DRAM_SIZE)
-#endif
-
 /*
  * The module can be at any place in ram in nommu mode.
  */
-#define MODULES_END		(END_MEM)
+#define MODULES_END		UL(0xffffffff)
 #define MODULES_VADDR		PAGE_OFFSET
 
 #define XIP_VIRT_ADDR(physaddr)  (physaddr)
-- 
2.0.0.rc2




More information about the linux-arm-kernel mailing list