RTEMS | cpukit/dev/flash: Fix region bitmap clear size (!1280)

Kinsey Moore (@opticron) gitlab at rtems.org
Wed Jun 3 12:43:34 UTC 2026




Kinsey Moore commented on a discussion: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1280#note_151663


The change here is actually correct. The bit allocator contains at least (rounded up to the nearest 32 bytes) one bit per possible region. `RTEMS_FLASHDEV_BITALLOC_LENGTH` produces not the byte length, but the number of uint32_t entries. This number needs to be multiplied by 4 to get the byte length required by memset.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1280#note_151663
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/20260603/6aa4c409/attachment.htm>


More information about the bugs mailing list