]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - common/spl/spl.c
spl: use TPL_SYS_MALLOC_F_LEN for TPL
[people/ms/u-boot.git] / common / spl / spl.c
index c56cc6f0ec330ba444c604f6e148be2f8922c955..bdb681f4f6d95d8818b962a9558c63632e368d7e 100644 (file)
@@ -486,7 +486,7 @@ ulong spl_relocate_stack_gd(void)
        gd_t *new_gd;
        ulong ptr = CONFIG_SPL_STACK_R_ADDR;
 
-#if defined(CONFIG_SPL_SYS_MALLOC_SIMPLE) && CONFIG_SPL_SYS_MALLOC_F_LEN
+#if defined(CONFIG_SPL_SYS_MALLOC_SIMPLE) && CONFIG_VAL(SYS_MALLOC_F_LEN)
        if (CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN) {
                ptr -= CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN;
                gd->malloc_base = ptr;