mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-08-21 20:56:28 -04:00
ARM: SPL: Only call mem_malloc_init if configured
We can only attempt to setup a malloc pool if CONFIG_SYS_SPL_MALLOC_START is defined, and not all boards require it. Make the call depend on the define. Signed-off-by: Tom Rini <trini@ti.com>
This commit is contained in:
parent
8082fda9fc
commit
24dafad5c4
@ -149,8 +149,10 @@ void board_init_r(gd_t *id, ulong dummy)
|
|||||||
u32 boot_device;
|
u32 boot_device;
|
||||||
debug(">>spl:board_init_r()\n");
|
debug(">>spl:board_init_r()\n");
|
||||||
|
|
||||||
|
#ifdef CONFIG_SYS_SPL_MALLOC_START
|
||||||
mem_malloc_init(CONFIG_SYS_SPL_MALLOC_START,
|
mem_malloc_init(CONFIG_SYS_SPL_MALLOC_START,
|
||||||
CONFIG_SYS_SPL_MALLOC_SIZE);
|
CONFIG_SYS_SPL_MALLOC_SIZE);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_SPL_BOARD_INIT
|
#ifdef CONFIG_SPL_BOARD_INIT
|
||||||
spl_board_init();
|
spl_board_init();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user