On Wed, 2016-08-03 at 19:17 -0600, Simon Glass wrote:
> Hi,
> 

Hi Simon,

> On 2 August 2016 at 21:24, Chin Liang See <cl...@altera.com> wrote:
> > Enable a simple malloc implementation which will minimize
> > memory usage prior relocation. This is essential as memory
> > available prior location is internal memory and limited in
> > size.
> > 
> > This implementation will stored last 2 usage of malloc. When
> > free is invoked and the free address matched, we shall revert
> > to previous value of gd->malloc_ptr that we stored.
> 
> I'm really not keen on this patch. Can we not adjust the FAT code to
> avoid repeated malloc()/free()?
> 

Sure and let me take a look on enhancing the FAT driver for the
malloc/free aspect.

Thanks
Chin Liang


> 
> > 
> > Signed-off-by: Chin Liang See <cl...@altera.com>
> > Cc: Marek Vasut <ma...@denx.de>
> > Cc: Simon Glass <s...@chromium.org>
> > Cc: Tom Rini <tr...@konsulko.com>
> > Cc: Dinh Nguyen <dingu...@opensource.altera.com>
> > Cc: Tien Fong Chee <tfc...@altera.com>
> > ---
> >  common/dlmalloc.c                 |  6 ++++--
> >  common/malloc_simple.c            | 34
> > ++++++++++++++++++++++++++++++++++
> >  include/asm-generic/global_data.h |  2 ++
> >  include/malloc.h                  |  3 ++-
> >  4 files changed, 42 insertions(+), 3 deletions(-)
> 
> Regards,
> Simon
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to