RTEMS | cpukit/libdl/arm: Add support for Thumb to ARM transitions and accompanying test (!223)

Chris Johns (@chris) gitlab at rtems.org
Tue Sep 24 23:59:47 UTC 2024




Chris Johns started a new discussion on cpukit/libdl/rtl-mdreloc-arm.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/223#note_112529

 >        if (!parsing) {
 > +        uint16_t bl_tmp;
 > +
 >          sign = (tmp >> 24) & 1;
 >          *(uint16_t *)where = (uint16_t)((upper_insn & 0xf800) | (sign << 10) |
 >                                          ((tmp >> 12) & 0x3ff));
 >  
 > -        *((uint16_t *)where + 1) = (uint16_t)((lower_insn & 0xd000)|
 > -                                              ((sign ^ (~(tmp >> 23) & 1)) << 13) |
 > -                                              ((sign ^ (~(tmp >> 22) & 1)) << 11) |
 > -                                              ((tmp >> 1) & 0x7ff));
 > +        bl_tmp = (uint16_t)((lower_insn & 0xd000)|
 > +                           ((sign ^ (~(tmp >> 23) & 1)) << 13) |
 > +                           ((sign ^ (~(tmp >> 22) & 1)) << 11) |
 > +                           ((tmp >> 1) & 0x7ff));
 > +	/* Thumb jumps to ARM mode must have 0 in the LSB of the BLX */

Legft aligned white space?

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/223#note_112529
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/20240924/13cb5acf/attachment-0001.htm>


More information about the bugs mailing list