mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-09-24 23:31:44 +02:00
board_init_f_mem(): Don't create an unused early malloc() area
Change the #ifdef so that the early malloc() area is not set up in SPL if CONFIG_SYS_SPL_MALLOC_START is defined. In that case it would never actually be used, and just chews up stack space. Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Masahiro Yamada <yamada.masahiro@socionext.com>
This commit is contained in:
parent
12360982fa
commit
518f0bccc4
@ -50,7 +50,8 @@ ulong board_init_f_mem(ulong top)
|
|||||||
#endif
|
#endif
|
||||||
arch_setup_gd(gd_ptr);
|
arch_setup_gd(gd_ptr);
|
||||||
|
|
||||||
#if defined(CONFIG_SYS_MALLOC_F)
|
#if defined(CONFIG_SYS_MALLOC_F) && \
|
||||||
|
(!defined(CONFIG_SPL_BUILD) || !defined(CONFIG_SYS_SPL_MALLOC_START))
|
||||||
top -= CONFIG_SYS_MALLOC_F_LEN;
|
top -= CONFIG_SYS_MALLOC_F_LEN;
|
||||||
gd->malloc_base = top;
|
gd->malloc_base = top;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user