zephyr/arch
Robert Hancock 54eeb7bee8 arch: arm: arm_mpu_v7m: Fix unsupported Cortex-R access permission mode
This file previously defined an MPU access permission mode of 0x7 which
corresponded to privileged read-only, unprivileged read-only, similar to
mode 0x6. However, it appears that at least Cortex-R5 does not support
this mode, defining 0x7 as UNP (Unpredictable) or a value which should
not be used.

This value was in turn referenced by the REGION_FLASH_ATTR macro, which
caused the offending value to be used when a memory region was declared
as DT_MEM_ARM(ATTR_MPU_FLASH) in the device tree, causing such regions
to not work properly on Cortex-R5.

Since 0x6 is supported by both Cortex-M and Cortex-R and does the same
thing, there is no reason to use 0x7. Remove the RO_Msk definition which
referenced it, and change REGION_FLASH_ATTR to use P_RO_U_RO_Msk instead.

Signed-off-by: Robert Hancock <robert.hancock@calian.com>
2025-05-13 17:44:40 +02:00
..
arc arch/arc: Remove redundant __cxa_atexit from MWDT stubs 2025-04-16 20:36:27 +02:00
arm arch: arm: arm_mpu_v7m: Fix unsupported Cortex-R access permission mode 2025-05-13 17:44:40 +02:00
arm64 cmake: Enable undefined behavior sanitizer on all targets 2025-05-02 01:16:18 +02:00
common arch: common: Make nocache region loadable 2025-04-21 12:42:19 +02:00
mips arch: mips: Rename _Fault to z_mips_fault 2025-01-28 23:42:06 +01:00
nios2 arch: nios2: Rename _Fault to z_nios2_fault 2025-01-28 23:42:06 +01:00
posix arch/posix: Add comment on empty function 2025-05-13 12:09:30 +02:00
riscv arch: riscv: add support for the zmmul integer multiply extension 2025-05-09 01:40:22 +02:00
rx arch: Initial support for RX architecture support 2025-05-02 09:18:16 +02:00
sparc Revert "arch: deprecate _current" 2025-01-10 07:49:08 +01:00
x86 arch: x86: core: intel64: Exclude apic_id comparison for ACRN 2025-05-09 21:08:36 +02:00
xtensa xtensa: update HAL path for custom compilations 2025-05-09 08:23:09 +02:00
archs.yml arch: Initial support for RX architecture support 2025-05-02 09:18:16 +02:00
CMakeLists.txt cmake: enable -Wshadow partially for in-tree code 2023-08-22 11:39:58 +02:00
Kconfig debug: coredump: support dumping stack top only 2025-05-12 19:19:25 +02:00