[U-Boot] [PATCH v2] ext2: Cache line aligned partial sector bounce buffer

Anton Staaf robotboy at google.com
Tue Aug 23 22:24:58 CEST 2011


On Tue, Aug 23, 2011 at 1:18 PM, Wolfgang Denk <wd at denx.de> wrote:
> Dear Anton Staaf,
>
> In message <CAF6FioUoRx50_6nEkMc0MyAKf6rZwsbu9tONrC+4c2UWUH+ZxQ at mail.gmail.com> you wrote:
>>
>> > and what do you do when there is no memory left in the malloc arena because
>> > you leaked it all and so can't service any new read requests ?
>>
>> I think you've miss-understood my patch.  The allocated buffer is
>> stored in a static variable.  So only the first time through is it
>> allocated.
>
> Strictly speaking, only the _pointer_to_ the allocated buffer is
> stored in a static variable. [I know you meant this, but we should try
> and be exact.]

Yes, absolutely.

Thanks,
    Anton

> Best regards,
>
> Wolfgang Denk
>
> --
> DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
> You have the capacity to learn from  mistakes.  You'll  learn  a  lot
> today.
>


More information about the U-Boot mailing list