configs: j721e_evm_a72_defconfig: Add HBMC related configs
[oweals/u-boot.git] / common / dlmalloc.c
index b395eefbf862cdad5808483750f739edcb8213ed..6f12a18d549b2372e3b33b2383bf58ac63c16b1a 100644 (file)
@@ -1891,6 +1891,12 @@ Void_t* mEMALIGn(alignment, bytes) size_t alignment; size_t bytes;
 
   if ((long)bytes < 0) return NULL;
 
+#if CONFIG_VAL(SYS_MALLOC_F_LEN)
+       if (!(gd->flags & GD_FLG_FULL_MALLOC_INIT)) {
+               return memalign_simple(alignment, bytes);
+       }
+#endif
+
   /* If need less alignment than we give anyway, just relay to malloc */
 
   if (alignment <= MALLOC_ALIGNMENT) return mALLOc(bytes);