[PATCH 09/12] ARM: rpi_b: move stack to top of RAM

Stephen Warren swarren at wwwdotorg.org
Tue Jul 3 22:02:52 EDT 2012


Move the top-of-stack from 32k to near the top of RAM. This leaves the
bottom of RAM free for ATAGs, or U-Boot scripts to use as they see fit.

Extracted from work by Oleksandr Tymoshenko <gonzo at bluezbox.com>.

Signed-off-by: Stephen Warren <swarren at wwwdotorg.org>
---
 include/configs/rpi_b.h |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/include/configs/rpi_b.h b/include/configs/rpi_b.h
index 9f74731..93dd701 100644
--- a/include/configs/rpi_b.h
+++ b/include/configs/rpi_b.h
@@ -44,9 +44,8 @@
  */
 #define CONFIG_SYS_SDRAM_SIZE		SZ_128M
 #define CONFIG_SYS_UBOOT_BASE		CONFIG_SYS_TEXT_BASE
-#define CONFIG_SYS_INIT_RAM_SIZE	SZ_4K
 #define CONFIG_SYS_INIT_SP_ADDR		(CONFIG_SYS_SDRAM_BASE + \
-					 CONFIG_SYS_INIT_RAM_SIZE - \
+					 CONFIG_SYS_SDRAM_SIZE - \
 					 GENERATED_GBL_DATA_SIZE)
 #define CONFIG_SYS_MALLOC_LEN		SZ_4M
 #define CONFIG_SYS_MEMTEST_START	0x00100000
-- 
1.7.9.5




More information about the linux-rpi-kernel mailing list