From 73e8454d17d4f07411605762bb1dcf87e152a8df Mon Sep 17 00:00:00 2001 From: Ioannis Glaropoulos Date: Thu, 13 Sep 2018 09:38:25 +0200 Subject: [PATCH] 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 --- arch/arm/core/cortex_m/mpu/Kconfig | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/core/cortex_m/mpu/Kconfig b/arch/arm/core/cortex_m/mpu/Kconfig index 6403c7b2166..b3150ca6f54 100644 --- a/arch/arm/core/cortex_m/mpu/Kconfig +++ b/arch/arm/core/cortex_m/mpu/Kconfig @@ -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"