RTEMS | cpukit/rtems-fdt: test and fix index search by offset (!1279)
Gedare Bloom (@gedare)
gitlab at rtems.org
Tue Jun 2 22:31:47 UTC 2026
Gedare Bloom created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1279
Project:Branches: gedare/rtems:5606-search-index to rtems/rtos/rtems:main
Author: Gedare Bloom
Assignee: Gedare Bloom
## Summary
cpukit/rtems-fdt: test and fix index search by offset
The rtems_fdt_subnode_offset and rtems_fdt_get_name try to binary
search the entries index by the DTB offset, but the index is sorted
by alphabetically by the name, so the search is broken. Replace these
searches by directly calling the libfdt functions. Since the DTB offset
is known, the performance hit for invoking the libfdt should not be too
much.
Closes #5606.
## Generative AI
no
<!-- If you have used AI please use the "AI Contribution" template otherwise leave this blank see our fulls statement at https://www.rtems.org/generative-ai/-->
<!-- Default settings, if it is a dropdown it will set after submission -->
Closes #5606
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1279
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/20260602/006981c1/attachment.htm>
More information about the bugs
mailing list