All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] ARM: socfpga: Put stack at the end of SRAM
@ 2018-05-12 20:27 Marek Vasut
  2018-05-14  8:03 ` Simon Goldschmidt
  0 siblings, 1 reply; 11+ messages in thread
From: Marek Vasut @ 2018-05-12 20:27 UTC (permalink / raw)
  To: u-boot

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 | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/include/configs/socfpga_common.h b/include/configs/socfpga_common.h
index 4de2aa7929..cb67d539b1 100644
--- a/include/configs/socfpga_common.h
+++ b/include/configs/socfpga_common.h
@@ -35,10 +35,8 @@
 #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
 
-- 
2.16.2

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2018-05-15  9:09 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-12 20:27 [U-Boot] [PATCH] ARM: socfpga: Put stack at the end of SRAM Marek Vasut
2018-05-14  8:03 ` Simon Goldschmidt
2018-05-14  8:17   ` Marek Vasut
2018-05-14  9:01     ` Simon Goldschmidt
2018-05-14  9:06       ` Marek Vasut
2018-05-14 15:51         ` Stefan Roese
2018-05-14 19:43           ` Simon Goldschmidt
2018-05-14 20:06             ` Simon Goldschmidt
2018-05-14 20:43             ` Marek Vasut
2018-05-15  7:26               ` Simon Goldschmidt
2018-05-15  9:09                 ` Marek Vasut

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.