]> git.baikalelectronics.ru Git - uboot.git/commit
Kconfig add config ERR_PTR_OFFSET
authorSimon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Tue, 22 Oct 2019 19:29:46 +0000 (21:29 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 7 Nov 2019 23:01:13 +0000 (18:01 -0500)
commitc33d60107b298c5b353dc58d53bcf13b02d19ea0
tree6b8a8a625c719feeed920bea7bea25c39ed7795f
parentbff3387dda1488e42e6a9a5dfda343450985be06
Kconfig add config ERR_PTR_OFFSET

Some U-Boot pointers have redundant information, so we can use a scheme
where we can return either an error code or a pointer with the same
return value. The default implementation just casts the pointer to a
number, however, this may fail on platforms where the end of the address
range is used for valid pointers (e.g. 0xffffff00 is a valid heap pointer
in socfpga SPL). For such platforms, this value provides an upper range
of those error pointer values - up to 'MAX_ERRNO' bytes below this value
must be unused/invalid addresses.

Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Kconfig