From: Simon Glass Date: Tue, 11 Nov 2014 00:16:44 +0000 (-0700) Subject: dm: arm: spl: Allow simple malloc() in SPL X-Git-Tag: v2015.01-rc2~4^2~21 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ba19599b4433d1b5b4c8b6872453eec0441d2fc0;p=u-boot dm: arm: spl: Allow simple malloc() in SPL For SPL it is sometimes useful to have a simple malloc() just to permit driver model to work, in the cases where the full malloc() is not made available by the board config. Signed-off-by: Simon Glass --- diff --git a/arch/arm/lib/crt0.S b/arch/arm/lib/crt0.S index 29cdad0f70..823b233bc8 100644 --- a/arch/arm/lib/crt0.S +++ b/arch/arm/lib/crt0.S @@ -78,7 +78,7 @@ clr_gd: strlo r0, [r1] /* clear 32-bit GD word */ addlo r1, r1, #4 /* move to next */ blo clr_gd -#if defined(CONFIG_SYS_MALLOC_F_LEN) && !defined(CONFIG_SPL_BUILD) +#if defined(CONFIG_SYS_MALLOC_F_LEN) sub sp, sp, #CONFIG_SYS_MALLOC_F_LEN str sp, [r9, #GD_MALLOC_BASE] #endif