summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-11-10 17:16:44 -0700
committerSimon Glass <sjg@chromium.org>2014-11-21 08:12:39 +0100
commitba19599b4433d1b5b4c8b6872453eec0441d2fc0 (patch)
tree4699a1160014c61d116595f4aad4e12ae3bb8928
parentc9356be30741b5192c79038fa4f8a2ac5b5f35c1 (diff)
downloadu-boot-imx-ba19599b4433d1b5b4c8b6872453eec0441d2fc0.zip
u-boot-imx-ba19599b4433d1b5b4c8b6872453eec0441d2fc0.tar.gz
u-boot-imx-ba19599b4433d1b5b4c8b6872453eec0441d2fc0.tar.bz2
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 <sjg@chromium.org>
-rw-r--r--arch/arm/lib/crt0.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/lib/crt0.S b/arch/arm/lib/crt0.S
index 29cdad0..823b233 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