From: Tom Rini Date: Fri, 8 Nov 2019 10:32:50 -0500 Subject: [U-Boot] [PATCH 3/3] arm: socfpga: gen5: fix ERR_PTR_OFFSET In-Reply-To: <20191022192948.11080-4-simon.k.r.goldschmidt@gmail.com> References: <20191022192948.11080-1-simon.k.r.goldschmidt@gmail.com> <20191022192948.11080-4-simon.k.r.goldschmidt@gmail.com> Message-ID: <20191108153250.GE19317@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Oct 22, 2019 at 09:29:48PM +0200, Simon Goldschmidt wrote: > The default implementation of ERR_PTR/PTR_ERR maps errno values at the > and of the address range (e.g. -EINVAL/-22 gets 0xFFFFFFEA). > > For socfpga gen5 SPL, this doesn't really work, as the heap is nearly > at the end of the 32 bit address range. > > This patch adjusts the ERR_PTR_OFFSET to map errno values into the range > of the Boot ROM, which should not be used for valid pointers. > > Signed-off-by: Simon Goldschmidt Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: