[U-Boot] [PATCH 0/3] make ERR_PTR/PTR_ERR architecture specific
Simon Goldschmidt
simon.k.r.goldschmidt at gmail.com
Tue Oct 22 19:29:45 UTC 2019
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.
Simon Goldschmidt (3):
Kconfig add config ERR_PTR_OFFSET
linux err: make ERR_PTR/PTR_ERR architecture specific
arm: socfpga: gen5: fix ERR_PTR_OFFSET
Kconfig | 14 ++++++++++++++
arch/arm/mach-socfpga/Kconfig | 3 +++
include/linux/err.h | 8 ++++----
3 files changed, 21 insertions(+), 4 deletions(-)
--
2.20.1
More information about the U-Boot
mailing list