Skip to content
Snippets Groups Projects
Commit 518f0bcc authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

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: default avatarSimon Glass <sjg@chromium.org>
Tested-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent 12360982
No related branches found
No related tags found
No related merge requests found
...@@ -50,7 +50,8 @@ ulong board_init_f_mem(ulong top) ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment