Hi Tomas,
On Wed, Sep 26, 2012 at 8:16 PM, Tomas Hlavacek wrote:
> Hello Graeme,
>
> On Wed, Sep 26, 2012 at 1:04 AM, Graeme Russ wrote:
>> Hi Tomas
>>
>> On Tue, Sep 25, 2012 at 7:09 PM, Graeme Russ wrote:
>>
>>> We should implement each of malloc(), free(), calloc(), and realloc().
>>>
>>> Do
Hello Graeme,
On Wed, Sep 26, 2012 at 1:04 AM, Graeme Russ wrote:
> Hi Tomas
>
> On Tue, Sep 25, 2012 at 7:09 PM, Graeme Russ wrote:
>
>> We should implement each of malloc(), free(), calloc(), and realloc().
>>
>> Don't worry about reclaiming and reusing space with a proper free()
>> implementa
Hi Tomas
On Tue, Sep 25, 2012 at 7:09 PM, Graeme Russ wrote:
> We should implement each of malloc(), free(), calloc(), and realloc().
>
> Don't worry about reclaiming and reusing space with a proper free()
> implementation. Remember, all memory allocated on the early heap must be
> relocated any
Hi Thomas,
On Sep 25, 2012 6:43 PM, "Tomas Hlavacek" wrote:
>
> Hello Graeme!
>
> On Tue, Sep 25, 2012 at 2:37 AM, Graeme Russ
wrote:
> > Hi Marek,
>
> [...]
>
> > The last two are NOPs for early heap as we have no way to track free'd
blocks
> >
> > Keep in mind that 'real' realloc() has access
Hello Graeme!
On Tue, Sep 25, 2012 at 2:37 AM, Graeme Russ wrote:
> Hi Marek,
[...]
> The last two are NOPs for early heap as we have no way to track free'd blocks
>
> Keep in mind that 'real' realloc() has access to information providing
> the size of the source block of allocated memory, so i
Hi Marek,
On Tue, Sep 25, 2012 at 12:19 AM, Marek Vasut wrote:
> Dear Tomas Hlavacek,
>
> [...]
>
>> >> +static inline void *dmrealloc(void *oldmem, size_t bytes)
>> >> +{
>> >> +#ifdef CONFIG_SYS_EARLY_MALLOC
>> >> + if (early_malloc_active())
>> >> + return NULL;
>> >
>> > I won
On Sun, Sep 23, 2012 at 06:47:34PM +0200, Tomas Hlavacek wrote:
> Dear Wolfgang Denk,
>
> On Sun, Sep 23, 2012 at 6:32 PM, Wolfgang Denk wrote:
> >>
> >> Changelog since v7:
> >> dmcalloc() implmentation added.
> >> Comments added to header.
> >
> > Your change log does not make much sense to me.
Dear Tomas Hlavacek,
[...]
> >> +static inline void *dmrealloc(void *oldmem, size_t bytes)
> >> +{
> >> +#ifdef CONFIG_SYS_EARLY_MALLOC
> >> + if (early_malloc_active())
> >> + return NULL;
> >
> > I wonder how should this be implemented ... maybe early_malloc + standard
> > memc
Hello Marek,
On Mon, Sep 24, 2012 at 1:11 AM, Marek Vasut wrote:
> Dear Tomas Hlavacek,
>
> [..]
>> +
>> + if (early_malloc_active()) {
>> + addr = early_malloc(size);
>> + for (i=0; i> + addr[i] = 0;
>
> memset() ?
Yes, sure. Thanks.
>
>> +
>> +
Hi Thomas,
On Mon, Sep 24, 2012 at 10:35 AM, Tomas Hlavacek wrote:
> Hi Graeme!
>
> On Mon, Sep 24, 2012 at 2:00 AM, Graeme Russ wrote:
>> Hi Tomas,
>>
>> On Mon, Sep 24, 2012 at 2:15 AM, Tomas Hlavacek wrote:
>>> early_malloc for DM with support for more heaps and lightweight
>>> first heap in
Hi Graeme!
On Mon, Sep 24, 2012 at 2:00 AM, Graeme Russ wrote:
> Hi Tomas,
>
> On Mon, Sep 24, 2012 at 2:15 AM, Tomas Hlavacek wrote:
>> early_malloc for DM with support for more heaps and lightweight
>> first heap in the same memory as an early stack.
>>
>> Adaptation layer for seamless calling
Hi Tomas,
On Mon, Sep 24, 2012 at 2:15 AM, Tomas Hlavacek wrote:
> early_malloc for DM with support for more heaps and lightweight
> first heap in the same memory as an early stack.
>
> Adaptation layer for seamless calling of early_malloc or dlmalloc from
> DM based on init stage added (dmmalloc
Dear Tomas Hlavacek,
[..]
> +
> + if (early_malloc_active()) {
> + addr = early_malloc(size);
> + for (i=0; i + addr[i] = 0;
memset() ?
> +
> + return addr;
> + }
> +#endif /* CONFIG_SYS_EARLY_MALLOC */
> + return calloc(n, elem
Dear Wolfgang Denk,
On Sun, Sep 23, 2012 at 6:32 PM, Wolfgang Denk wrote:
>>
>> Changelog since v7:
>> dmcalloc() implmentation added.
>> Comments added to header.
>
> Your change log does not make much sense to me. It appears there has
> been some dmcalloc() implementation already in v5 (and ee
Dear Tomas Hlavacek,
In message <1348416940-20319-1-git-send-email-tmshl...@gmail.com> you wrote:
> early_malloc for DM with support for more heaps and lightweight
> first heap in the same memory as an early stack.
>
> Adaptation layer for seamless calling of early_malloc or dlmalloc from
> DM ba
early_malloc for DM with support for more heaps and lightweight
first heap in the same memory as an early 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
---
Changelog sin
16 matches
Mail list logo