]> git.sur5r.net Git - u-boot/commitdiff
ARM: socfpga: Put stack at the end of SRAM
authorMarek Vasut <marex@denx.de>
Thu, 26 Apr 2018 20:23:05 +0000 (22:23 +0200)
committerMarek Vasut <marex@denx.de>
Fri, 18 May 2018 08:30:45 +0000 (10:30 +0200)
The global data are in the .data section, so there's no point in
reserving any space for it above stack. Put stack at the end of
SRAM.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Chin Liang See <chin.liang.see@intel.com>
Cc: Dinh Nguyen <dinguyen@kernel.org>
include/configs/socfpga_common.h

index 4de2aa792903e75190bac940c693753551fc3137..cb67d539b1795ca023d9ee15e9effbc1d60ab078 100644 (file)
 #define CONFIG_SYS_INIT_RAM_ADDR       0xFFE00000
 #define CONFIG_SYS_INIT_RAM_SIZE       0x40000 /* 256KB */
 #endif
-#define CONFIG_SYS_INIT_SP_OFFSET              \
-       (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
 #define CONFIG_SYS_INIT_SP_ADDR                        \
-       (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
+       (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_RAM_SIZE)
 
 #define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM_1