.

.

.

common/board_r.c

1    static int initr_malloc(void)
2    {
3            ulong malloc_start;
4    
5    #ifdef CONFIG_SYS_MALLOC_F_LEN
6            debug("Pre-reloc malloc() used %#lx bytes (%ld KB)\n", gd->malloc_ptr,
7                  gd->malloc_ptr / 1024);
8    #endif
9            /* The malloc area is immediately below the monitor copy in DRAM */
10            malloc_start = gd->relocaddr - TOTAL_MALLOC_LEN;
11            mem_malloc_init((ulong)map_sysmem(malloc_start, TOTAL_MALLOC_LEN),
12                            TOTAL_MALLOC_LEN);
13            return 0;
14    }

.

.

results matching ""

    No results matching ""