FreeRTOS-Kernel/portable/IAR/ARM_CM4F_MPU
Soren Ptak 84bdb05bd2
Fix portSWITCH_TO_USER_MODE() on Armv7-M MPU ports (#803)
A task's privilege level is stored in ulTaskFlag member in the TCB. Current
implementation of portSWITCH_TO_USER_MODE() does not update this
flag but just lowers the processor's privilege level. This results in many
APIs incorrectly determining task's privilege level and access permissions -

- xPortIsAuthorizedToAccessBuffer
- xPortIsTaskPrivileged
- xPortIsAuthorizedToAccessKernelObject

This PR fixes the portSWITCH_TO_USER_MODE() implementation to correctly
update the ulTaskFlag member in the TCB before lowering the processor's
privilege level.
2023-09-26 14:36:23 +05:30
..
mpu_wrappers_v2_asm.S Update MPU wrapper for pcTaskGetName API (#737) 2023-08-04 12:22:28 +05:30
port.c Fix portSWITCH_TO_USER_MODE() on Armv7-M MPU ports (#803) 2023-09-26 14:36:23 +05:30
portasm.s Fix remarks emitted by IAR compiler (#763) 2023-08-21 14:48:22 +05:30
portmacro.h Fix portSWITCH_TO_USER_MODE() on Armv7-M MPU ports (#803) 2023-09-26 14:36:23 +05:30