--- a/common/dlmalloc.c 2022-12-06 11:26:57.000000000 +0900 +++ b/common/dlmalloc.c 2023-09-05 17:58:21.916249216 +0900 @@ -611,15 +611,20 @@ mem_malloc_brk = start; #ifdef CONFIG_SYS_MALLOC_DEFAULT_TO_INIT + printf("mem_malloc_init 1.\n"); malloc_init(); #endif + printf("mem_malloc_init 2.\n"); debug("using memory %#lx-%#lx for malloc()\n", mem_malloc_start, mem_malloc_end); #ifdef CONFIG_SYS_MALLOC_CLEAR_ON_INIT + printf("mem_malloc_init 3. mem_malloc_start = 0x%lx size = 0x%lx\n",mem_malloc_start,size); memset((void *)mem_malloc_start, 0x0, size); #endif + printf("mem_malloc_init 4.\n"); malloc_bin_reloc(); + printf("mem_malloc_init 5.\n"); } /* field-extraction macros */