[U-Boot] [PATCH 3/3] arm: socfpga: gen5: fix ERR_PTR_OFFSET

Tom Rini trini at konsulko.com
Fri Nov 8 15:32:50 UTC 2019


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 <simon.k.r.goldschmidt at gmail.com>

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: <http://lists.denx.de/pipermail/u-boot/attachments/20191108/ed3f4d48/attachment.sig>


More information about the U-Boot mailing list