
8 Nov
2019
8 Nov
'19
4:32 p.m.
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@gmail.com
Applied to u-boot/master, thanks!
--
Tom