RTEMS | rtems-fdt: rtems_fdt_get_value() does not work as expected (#5600)
Gedare Bloom (@gedare)
gitlab at rtems.org
Mon Jun 1 22:13:50 UTC 2026
Gedare Bloom created an issue: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5600
## Summary
<!--
Please provide as much information as possible such as error messages or attaching logs
-->
The rtems_fdt_get_value() is sparsely documented, but it claims to "Get a value given a path and a property." However, it will only get a property value if the property size matches the `uintptr_t` size. This greatly limits the usefulness of the API call and it will give different behavior under 32- and 64-bit pointer sizes.
I would change this API to replace the `uintptr_t *value` with `void *value` and use memcpy() to populate it, similar to what is done in `rtems_fdt_prop_value`.
<!-- Pre-set options
- milestone
-->
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5600
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/d5741366/attachment.htm>
More information about the bugs
mailing list