arch: arm: remove power-of-two align and size requirement for ARMv8-m

The ARMv8-m Memory Protection Unit does not require MPU regions
to be power-of-two aligned and sized. This commit removes this
requirement when building for ARMv8-m MCUs.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
This commit is contained in:
Ioannis Glaropoulos 2018-09-13 09:38:25 +02:00 committed by Anas Nashif
commit 73e8454d17

View file

@ -26,9 +26,11 @@ config ARM_MPU
depends on SOC_FAMILY_ARM || SOC_FAMILY_STM32 || SOC_FAMILY_NRF || SOC_FAMILY_IMX || SOC_FAMILY_SAM
select ARM_CORE_MPU
select ARCH_HAS_EXECUTABLE_PAGE_BIT
select MPU_REQUIRES_POWER_OF_TWO_ALIGNMENT
select MPU_REQUIRES_POWER_OF_TWO_ALIGNMENT if !(ARMV8_M_BASELINE || ARMV8_M_MAINLINE)
help
MCU has ARM MPU
MCU implements the standard ARM Memory Protection Unit.
Note that ARMv8-M MPU does not require MPU regions to have
power-of-two alignment for base address and region size.
config NXP_MPU
bool "NXP MPU Support"