]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: atmel: sama7g5ek: add SYS_MALLOC_F_LEN to SYS_INIT_SP_ADDR
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Tue, 2 Jun 2020 07:32:08 +0000 (10:32 +0300)
committerEugen Hristev <eugen.hristev@microchip.com>
Thu, 7 Jan 2021 07:44:15 +0000 (09:44 +0200)
Heap base address is computed based on SYS_INIT_SP_ADDR by
subtracting the SYS_MALLOC_F_LEN value in
board_init_f_init_reserve().

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
include/configs/sama7g5ek.h

index 3b3432ba5e666349071ff123f6b2cff8e8427d79..fbf0274b38294550203a19b57172ecaf15e1bc8f 100644 (file)
@@ -20,7 +20,8 @@
 #define CONFIG_SYS_INIT_SP_ADDR                0x218000
 #else
 #define CONFIG_SYS_INIT_SP_ADDR \
-       (CONFIG_SYS_SDRAM_BASE + 16 * 1024 - GENERATED_GBL_DATA_SIZE)
+       (CONFIG_SYS_SDRAM_BASE + 16 * 1024 + CONFIG_SYS_MALLOC_F_LEN - \
+        GENERATED_GBL_DATA_SIZE)
 #endif
 
 #define CONFIG_SYS_LOAD_ADDR           0x62000000 /* load address */