Skip to content

Commit ddff91f

Browse files
rysiofkartben
authored andcommitted
arch: Changes MPU alignment to 128 when FPU_SHARING and MPU_STACK_GUARD
With our builds for Arm M7 we are selecting FPU_SHARING and MPU_STACK_GUARD. For that setup, we have ARM_MPU_REGION_MIN_ALIGN_AND_SIZE=64 and MPU_STACK_GUARD_MIN_SIZE_FLOAT=128. So worst case scenario, we are going to have stack that is 64-byte aligned and 128-byte guard at the bottom of the buffer. Fixes: #83714 Signed-off-by: Maciej Kusio <[email protected]>
1 parent 7488810 commit ddff91f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/arm/core/mpu/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ if CPU_HAS_MPU
88
config ARM_MPU_REGION_MIN_ALIGN_AND_SIZE
99
int
1010
default 256 if ARM_MPU && ARMV6_M_ARMV8_M_BASELINE && !ARMV8_M_BASELINE
11+
default 128 if ARM_MPU && FPU_SHARING && MPU_STACK_GUARD
1112
default 64 if ARM_MPU && AARCH32_ARMV8_R
1213
default 32 if ARM_MPU
1314
default 4

0 commit comments

Comments
 (0)