RTEMS | Use unsigned type for processor masks (!1096)

Sebastian Huber (@sebhub) gitlab at rtems.org
Tue Mar 3 07:08:56 UTC 2026




Sebastian Huber commented on a discussion on cpukit/include/rtems/score/processormaskimpl.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1096#note_144134

 >    uint32_t              index
 >  )
 >  {
 > -  long bits = mask->__bits[ index / _BITSET_BITS ];
 > +  unsigned long bits = mask->__bits[ index / _BITSET_BITS ];

We have two issues here:

1. The bitset support in Newlib uses the wrong integer type.
2. RTEMS uses the bitset support in Newlib.

This MR addresses 1. If you think that 2. is worth fixing, then this should be handled separately.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1096#note_144134
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/20260303/c0e763b6/attachment.htm>


More information about the bugs mailing list