From: Marek Vasut Date: Wed, 25 May 2016 00:14:56 +0000 (+0200) Subject: spl: Allow settings malloc_f base address X-Git-Tag: v2016.07-rc1~58 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=94b9e22e5036a2d8ad76956785e55754d4a980ad;p=oweals%2Fu-boot.git spl: Allow settings malloc_f base address Allow configuring the begining of the malloc_f area in SPL. This patch uses the same CONFIG_MALLOC_F_ADDR established by the sandbox. Signed-off-by: Marek Vasut Cc: Tom Rini Cc: Simon Glass --- diff --git a/common/spl/spl.c b/common/spl/spl.c index bdde716918..780c081fb2 100644 --- a/common/spl/spl.c +++ b/common/spl/spl.c @@ -192,6 +192,9 @@ int spl_init(void) debug("spl_init()\n"); #if defined(CONFIG_SYS_MALLOC_F_LEN) +#ifdef CONFIG_MALLOC_F_ADDR + gd->malloc_base = CONFIG_MALLOC_F_ADDR; +#endif gd->malloc_limit = CONFIG_SYS_MALLOC_F_LEN; gd->malloc_ptr = 0; #endif