aboutsummaryrefslogtreecommitdiff
path: root/include/linux/err.h
diff options
context:
space:
mode:
authorSimon Goldschmidt <simon.k.r.goldschmidt@gmail.com>2019-10-22 21:29:46 +0200
committerTom Rini <trini@konsulko.com>2019-11-07 18:01:13 -0500
commit93db2b83ed515fd5700b6c5abb0fba612ef2cdcb (patch)
tree6b8a8a625c719feeed920bea7bea25c39ed7795f /include/linux/err.h
parent37e66ba916cf2b911ca03479f3cdcccc9f7932a1 (diff)
downloadu-boot-93db2b83ed515fd5700b6c5abb0fba612ef2cdcb.zip
u-boot-93db2b83ed515fd5700b6c5abb0fba612ef2cdcb.tar.gz
u-boot-93db2b83ed515fd5700b6c5abb0fba612ef2cdcb.tar.bz2
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>
Diffstat (limited to 'include/linux/err.h')
0 files changed, 0 insertions, 0 deletions