mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 13:11:31 +00:00
arm: socfpga: gen5: fix ERR_PTR_OFFSET
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>
This commit is contained in:
parent
8c59ca93b8
commit
a43b60cc78
1 changed files with 3 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
|||
if ARCH_SOCFPGA
|
||||
|
||||
config ERR_PTR_OFFSET
|
||||
default 0xfffec000 if TARGET_SOCFPGA_GEN5 # Boot ROM range
|
||||
|
||||
config NR_DRAM_BANKS
|
||||
default 1
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue