Re: [U-Boot] malloc_simple: fix malloc_ptr calculation

2015-09-30 Thread Sjoerd Simons
On Mon, 2015-09-28 at 17:07 -0400, Tom Rini wrote: > On Tue, Sep 08, 2015 at 12:41:24PM +0200, Philipp Rosenberger wrote: > > > The gd->malloc_ptr and the gd->malloc_limit are offsets to gd > > ->malloc_base. > > But the addr variable contains the absolute address. The new_ptr > > must be: > > add

Re: [U-Boot] malloc_simple: fix malloc_ptr calculation

2015-09-28 Thread Tom Rini
On Tue, Sep 08, 2015 at 12:41:24PM +0200, Philipp Rosenberger wrote: > The gd->malloc_ptr and the gd->malloc_limit are offsets to gd->malloc_base. > But the addr variable contains the absolute address. The new_ptr must be: > addr + bytes - gd->malloc_base. > > Signed-off-by: Philipp Rosenberger