RTEMS | cpukit/libdl/arm: Obey instruction encoding requirements for Thumb BLX (!223)

Kinsey Moore (@opticron) gitlab at rtems.org
Tue Sep 17 19:50:26 UTC 2024



Kinsey Moore created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/223

Project:Branches: opticron/rtems:libdl-thumb-blx to rtems/rtos/rtems:main
Author:   Kinsey Moore
Assignee: Kinsey Moore



## Summary

cpukit/libdl/arm: Obey instruction encoding requirements for Thumb BLX

Calls from Thumb code into ARM code require the use of a BLX instruction
and an optional offset prefix instruction. The BLX instruction encoding
requires that the least significant bit be 0 in all cases while the BL
instruction for Thumb-to-Thumb calls includes that bit as part of the
offset. This ensures that bit 0 of the BLX is set to 0 as required by
the instruction encoding specification.


<!-- Default settings, if it is a dropdown it will set after submission -->

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/223
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/20240917/130382c3/attachment.htm>


More information about the bugs mailing list