]> git.sur5r.net Git - u-boot/blobdiff - arch/arm/lib/crt0_64.S
arm: mvebu: dram.c: Rework dram_init() and dram_init_banksize()
[u-boot] / arch / arm / lib / crt0_64.S
index bc9c53c308debaf82965dcbf912836c91ff33ab6..98a906ee111c6110bf0b5aa2b839bc2143ddd892 100644 (file)
@@ -74,7 +74,8 @@ zero_gd:
        cmp     x0, x18
        b.gt    zero_gd
 #if defined(CONFIG_SYS_MALLOC_F_LEN)
-       sub     x0, x18, #CONFIG_SYS_MALLOC_F_LEN
+       ldr     x0, =CONFIG_SYS_MALLOC_F_LEN
+       sub     x0, x18, x0
        str     x0, [x18, #GD_MALLOC_BASE]
 #endif
        bic     sp, x0, #0xf    /* 16-byte alignment for ABI compliance */