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 graeme.r...@gmail.com wrote: I'd say, pull out the modification of global data into separate patch and put it

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 ma...@denx.de wrote: Dear Tomas Hlavacek, [snip] +struct early_heap_header *early_brk(size_t size) + __attribute__((weak, alias(def_early_brk))); what about using

[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 tmshl...@gmail.com ---

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

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 tmshl...@gmail.com 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

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 ma...@denx.de 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

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 ma...@denx.de 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

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 ma...@denx.de 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 linux/compiler.h): __weak struct early_heap_header

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 ma...@denx.de 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 linux/compiler.h):