freertos-mpu: Add privileged execute never MPU attribute

A new MPU region attribute Privileged eXecute Never (PXN)
is introduced in Armv8.1-M architecture, where if an MPU
region has PXN attribute set and the processor attempts
to execute the code inside with privileged level,
the Memory Management Fault exception would be triggered,
with IACCVIOL bit in MemManage Fault State Register set
to 1. The PXN feature allows privileged software to ensure
specific application tasks (threads) to execute in
unprivileged level only.

Signed-off-by: Ahmed Ismail <Ahmed.Ismail@arm.com>
This commit is contained in:
Ahmed Ismail 2024-05-23 13:19:10 +01:00 committed by Ahmed Ismail
parent 0c79e74eaa
commit ea60cd130a
56 changed files with 1267 additions and 957 deletions

View file

@ -50,6 +50,7 @@
*/
#define portARCH_NAME "Cortex-M23"
#define portHAS_ARMV8M_MAIN_EXTENSION 0
#define portHAS_ARMV8_1_M_EXTENSION 0
#define portDONT_DISCARD __root
/*-----------------------------------------------------------*/