]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
dm: arm: spl: Allow simple malloc() in SPL
authorSimon Glass <sjg@chromium.org>
Tue, 11 Nov 2014 00:16:44 +0000 (17:16 -0700)
committerSimon Glass <sjg@chromium.org>
Fri, 21 Nov 2014 07:12:39 +0000 (08:12 +0100)
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>
arch/arm/lib/crt0.S

index 29cdad0f70716a85e260a124b73f63746b484b80..823b233bc861ef4749417d6b344a2658d6d2ebe2 100644 (file)
@@ -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