[U-Boot] [PATCHv2 1/1] [RFC] DM: early_malloc for DM added.

Graeme Russ graeme.russ at gmail.com
Tue Aug 28 02:11:07 CEST 2012


Hi Tomas

> static struct early_heap_header *def_early_brk(size_t bytes)
> {
>         struct early_heap_header *h;
>
>         if(gd->early_heap_first)
>                 return NULL;
>
>         /* The default implementation allocates all of the reserved space */
>         bytes = CONFIG_SYS_EARLY_HEAP_SIZE;
>         gd->early_heap_first = bytes;

Oops

gd->early_heap_first = CONFIG_SYS_EARLY_HEAP_ADDR;

Regards,

Graeme


More information about the U-Boot mailing list