RTEMS | rtems-fdt: rtems_fdt_prop_map() property size limitation (#5602)
Gedare Bloom (@gedare)
gitlab at rtems.org
Mon Jun 1 23:54:15 UTC 2026
Gedare Bloom created an issue: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5602
## Summary
<!--
Please provide as much information as possible such as error messages or attaching logs
-->
The `rtems_fdt_prop_map()` is only able to map properties whose lengths are less than or equal to the size of a pointer (`uintptr_t`). This is not documented in the API. This limitation also means that code that may work on a 64-bit architecture (lp64) may fail on a 32-bit (ilp32) one, if the property requested is 64-bits. It also means that the call could succeed/fail arbitrarily on variable-length properties (i.e., strings) if they happen to fit in the `uintptr_t` size.
I'm not sure if this is something we should document explicitly and leave as-is, or if we should make it more flexible, or perhaps more rigid.
<!-- Pre-set options
- milestone
-->
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5602
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260601/37f4137e/attachment.htm>
More information about the bugs
mailing list