Re: [U-Boot] [PATCHv4] [RFC] DM: early_malloc for DM added.

2012-09-21 Thread Tomas Hlavacek
Hello all, I have sent a new version. Although I tried to take into account all the opinions and comments I might have missed something. On Wed, Sep 19, 2012 at 1:29 AM, Graeme Russ wrote: >> >> I'd say, pull out the modification of global data into separate patch and >> put it >> before this p

Re: [U-Boot] [PATCHv4] [RFC] DM: early_malloc for DM added.

2012-09-19 Thread Tom Rini
On Wed, Sep 19, 2012 at 09:29:04AM +1000, Graeme Russ wrote: > Hi Marek, > > On Tue, Sep 18, 2012 at 8:57 PM, Marek Vasut wrote: > > Dear Tomas Hlavacek, [snip] > >> +struct early_heap_header *early_brk(size_t size) > >> + __attribute__((weak, alias("def_early_brk"))); > > > > what about usin

Re: [U-Boot] [PATCHv4] [RFC] DM: early_malloc for DM added.

2012-09-18 Thread Marek Vasut
Dear Graeme Russ, > Hi Marek, > > On Wed, Sep 19, 2012 at 9:33 AM, Marek Vasut wrote: > > Dear Graeme Russ, > > [snip] > > >> >> +struct early_heap_header *early_brk(size_t size) > >> >> + __attribute__((weak, alias("def_early_brk"))); > >> > > >> > what about using (it needs ): > >> > >

Re: [U-Boot] [PATCHv4] [RFC] DM: early_malloc for DM added.

2012-09-18 Thread Graeme Russ
Hi Marek, On Wed, Sep 19, 2012 at 9:33 AM, Marek Vasut wrote: > Dear Graeme Russ, > [snip] >> >> +struct early_heap_header *early_brk(size_t size) >> >> + __attribute__((weak, alias("def_early_brk"))); >> > >> > what about using (it needs ): >> > >> > __weak struct early_heap_header *early_

Re: [U-Boot] [PATCHv4] [RFC] DM: early_malloc for DM added.

2012-09-18 Thread Marek Vasut
Dear Graeme Russ, > Hi Marek, > > On Tue, Sep 18, 2012 at 8:57 PM, Marek Vasut wrote: > > Dear Tomas Hlavacek, > > > >> early_malloc for DM with support for more heaps and lightweight > >> first heap on stack. > >> > >> Adaptation layer for seamless calling of early_malloc or dlmalloc from > >

Re: [U-Boot] [PATCHv4] [RFC] DM: early_malloc for DM added.

2012-09-18 Thread Graeme Russ
Hi Marek, On Tue, Sep 18, 2012 at 8:57 PM, Marek Vasut wrote: > Dear Tomas Hlavacek, > >> early_malloc for DM with support for more heaps and lightweight >> first heap on stack. >> >> Adaptation layer for seamless calling of early_malloc or dlmalloc from >> DM based on init stage added (dmmalloc(

Re: [U-Boot] [PATCHv4] [RFC] DM: early_malloc for DM added.

2012-09-18 Thread Graeme Russ
Hi Tomas On Tue, Sep 18, 2012 at 5:13 PM, Tomas Hlavacek wrote: > early_malloc for DM with support for more heaps and lightweight > first heap on stack. Technically, you are not putting the first heap on the stack - you are sacrificing some early stack space to create the early heap > > Adaptat

Re: [U-Boot] [PATCHv4] [RFC] DM: early_malloc for DM added.

2012-09-18 Thread Marek Vasut
Dear Tomas Hlavacek, > early_malloc for DM with support for more heaps and lightweight > first heap on stack. > > Adaptation layer for seamless calling of early_malloc or dlmalloc from > DM based on init stage added (dmmalloc() and related functions). > > Signed-off-by: Tomas Hlavacek > --- It

[U-Boot] [PATCHv4] [RFC] DM: early_malloc for DM added.

2012-09-18 Thread Tomas Hlavacek
early_malloc for DM with support for more heaps and lightweight first heap on stack. Adaptation layer for seamless calling of early_malloc or dlmalloc from DM based on init stage added (dmmalloc() and related functions). Signed-off-by: Tomas Hlavacek --- arch/arm/include/asm/config.h