[U-Boot] malloc_simple: fix malloc_ptr calculation

Sjoerd Simons sjoerd.simons at collabora.co.uk
Wed Sep 30 15:57:06 CEST 2015


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:
> > addr + bytes - gd->malloc_base.

Just bisected down git master not booting on my RK3288 board anymore,
turned out to be this patch. Reverting it on master makes for a much
happier board...

I'll dig a bit deeper what's going on here now.

-- 
Sjoerd Simons
Collabora Ltd.


More information about the U-Boot mailing list