mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-26 14:18:20 +00:00
Currently, if a BSP is built without MPU alignment enforcement, the MPU is still enabled and can produce a non-functional binary since code can be mixed with data within a memory region and memory regions are marked as read-only or no-execute based on section addresses and sizes leading to overlapping regions being defined which causes the later-defined region to take precedence. This change disables the MPU when alignment is not enforced, allowing the binary to function.