Skip to content

Commit c74c551

Browse files
committed
zephyr/arm_cleanup: exclude z_arm_clear_arm_mpu_config() when no MPU
This function must be excluded from build when core doesn't have MPU. Signed-off-by: Andrzej Puzdrowski <[email protected]>
1 parent 56c15e7 commit c74c551

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

boot/zephyr/arm_cleanup.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ void cleanup_arm_nvic(void) {
2121
}
2222
}
2323

24+
#if CONFIG_CPU_HAS_ARM_MPU
2425
__weak void z_arm_clear_arm_mpu_config(void)
2526
{
2627
int i;
@@ -32,3 +33,4 @@ __weak void z_arm_clear_arm_mpu_config(void)
3233
ARM_MPU_ClrRegion(i);
3334
}
3435
}
36+
#endif

0 commit comments

Comments
 (0)