All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/3] make ERR_PTR/PTR_ERR architecture specific
@ 2019-10-22 19:29 Simon Goldschmidt
  2019-10-22 19:29 ` [U-Boot] [PATCH 1/3] Kconfig add config ERR_PTR_OFFSET Simon Goldschmidt
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Simon Goldschmidt @ 2019-10-22 19:29 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-11-08 15:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-22 19:29 [U-Boot] [PATCH 0/3] make ERR_PTR/PTR_ERR architecture specific Simon Goldschmidt
2019-10-22 19:29 ` [U-Boot] [PATCH 1/3] Kconfig add config ERR_PTR_OFFSET Simon Goldschmidt
2019-11-08 15:32   ` Tom Rini
2019-10-22 19:29 ` [U-Boot] [PATCH 2/3] linux err: make ERR_PTR/PTR_ERR architecture specific Simon Goldschmidt
2019-11-08 15:32   ` Tom Rini
2019-10-22 19:29 ` [U-Boot] [PATCH 3/3] arm: socfpga: gen5: fix ERR_PTR_OFFSET Simon Goldschmidt
2019-11-08 15:32   ` Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.