From: Sjoerd Simons Date: Wed, 30 Sep 2015 15:57:06 +0200 Subject: [U-Boot] malloc_simple: fix malloc_ptr calculation In-Reply-To: <20150928210737.GQ22966@bill-the-cat> References: <1441708884-26165-1-git-send-email-ilu@linutronix.de> <20150928210737.GQ22966@bill-the-cat> Message-ID: <1443621426.31869.86.camel@collabora.co.uk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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.