zephyr/arch/arm
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Mathieu Choplain 6c5a23e937 arch: arm: core: mpu: simplify predicate for MPU variant selection
We already determine whether the target is PMSAv8 or (PMSAv6/PMSAv7)
using the selected architecture profile (ARMv6-M/ARMv7-M or ARMv8-M
Baseline/Mainline) and define a symbol accordingly. Make use of that
symbol everywhere instead of repeating CPU checks all over arch code.

While at it, drop the allowlist which generated a build error when the
MPU was enabled on an "unknown" CPU. The header is only included from
SoC-specific code which knows whether an MPU exists or not, or generic
code gated behind CONFIG_ARM_MPU, which guarantees that the MPU exists
as CONFIG_ARM_MPU depends on CONFIG_CPU_HAS_ARM_MPU.

Note: this tangentially fixes a bug that misclassified ARMv8-R targets
as using the PMSAv6/PMSAv7 MPU. This bug did not seem to have any
adverse effect though...

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-08-08 16:31:13 -04:00
..
core arch: arm: core: mpu: simplify predicate for MPU variant selection 2026-08-08 16:31:13 -04:00
include arch/arm: Remove unused Cortex M thread struct elements 2026-03-10 17:24:10 +01:00
CMakeLists.txt arch: arm: cmake: Correct endian in output format 2024-07-04 18:01:51 -04:00
Kconfig llext: Add support for generating veneers for out-of-range branches. 2026-05-14 15:13:09 +02:00