FreeRTOS-Kernel/portable/IAR
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
..
78K0R CI-CD Updates (#768) 2023-09-05 14:24:04 -07:00
ARM_CA5_No_GIC CI-CD Updates (#768) 2023-09-05 14:24:04 -07:00
ARM_CA9 CI-CD Updates (#768) 2023-09-05 14:24:04 -07:00
ARM_CM0 Add trace hook macro for most ports (#794) 2023-09-20 16:19:42 +05:30
ARM_CM3 Add trace hook macro for most ports (#794) 2023-09-20 16:19:42 +05:30
ARM_CM4F Add trace hook macro for most ports (#794) 2023-09-20 16:19:42 +05:30
ARM_CM4F_MPU Fix portSWITCH_TO_USER_MODE() on Armv7-M MPU ports (#803) 2023-09-26 14:36:23 +05:30
ARM_CM7 Add trace hook macro for most ports (#794) 2023-09-20 16:19:42 +05:30
ARM_CM23 Remove unwanted variable portACL_ENTRY_SIZE_BYTES (#810) 2023-09-26 09:58:02 +05:30
ARM_CM23_NTZ/non_secure Remove unwanted variable portACL_ENTRY_SIZE_BYTES (#810) 2023-09-26 09:58:02 +05:30
ARM_CM33 Remove unwanted variable portACL_ENTRY_SIZE_BYTES (#810) 2023-09-26 09:58:02 +05:30
ARM_CM33_NTZ/non_secure Remove unwanted variable portACL_ENTRY_SIZE_BYTES (#810) 2023-09-26 09:58:02 +05:30
ARM_CM35P Remove unwanted variable portACL_ENTRY_SIZE_BYTES (#810) 2023-09-26 09:58:02 +05:30
ARM_CM35P_NTZ/non_secure Remove unwanted variable portACL_ENTRY_SIZE_BYTES (#810) 2023-09-26 09:58:02 +05:30
ARM_CM55 Remove unwanted variable portACL_ENTRY_SIZE_BYTES (#810) 2023-09-26 09:58:02 +05:30
ARM_CM55_NTZ/non_secure Remove unwanted variable portACL_ENTRY_SIZE_BYTES (#810) 2023-09-26 09:58:02 +05:30
ARM_CM85 Remove unwanted variable portACL_ENTRY_SIZE_BYTES (#810) 2023-09-26 09:58:02 +05:30
ARM_CM85_NTZ/non_secure Remove unwanted variable portACL_ENTRY_SIZE_BYTES (#810) 2023-09-26 09:58:02 +05:30
ARM_CRx_No_GIC CI-CD Updates (#768) 2023-09-05 14:24:04 -07:00
ATMega323 CI-CD Updates (#768) 2023-09-05 14:24:04 -07:00
AtmelSAM7S64 Add trace hook macro for most ports (#794) 2023-09-20 16:19:42 +05:30
AtmelSAM9XE Add trace hook macro for most ports (#794) 2023-09-20 16:19:42 +05:30
AVR32_UC3 CI-CD Updates (#768) 2023-09-05 14:24:04 -07:00
AVR_AVRDx CI-CD Updates (#768) 2023-09-05 14:24:04 -07:00
AVR_Mega0 CI-CD Updates (#768) 2023-09-05 14:24:04 -07:00
LPC2000 Add trace hook macro for most ports (#794) 2023-09-20 16:19:42 +05:30
MSP430 CI-CD Updates (#768) 2023-09-05 14:24:04 -07:00
MSP430X CI-CD Updates (#768) 2023-09-05 14:24:04 -07:00
RISC-V Add trace hook macro for most ports (#794) 2023-09-20 16:19:42 +05:30
RL78 CI-CD Updates (#768) 2023-09-05 14:24:04 -07:00
RX100 CI-CD Updates (#768) 2023-09-05 14:24:04 -07:00
RX600 CI-CD Updates (#768) 2023-09-05 14:24:04 -07:00
RX700v3_DPFPU CI-CD Updates (#768) 2023-09-05 14:24:04 -07:00
RXv2 CI-CD Updates (#768) 2023-09-05 14:24:04 -07:00
STR71x Add trace hook macro for most ports (#794) 2023-09-20 16:19:42 +05:30
STR75x Add trace hook macro for most ports (#794) 2023-09-20 16:19:42 +05:30
STR91x Add trace hook macro for most ports (#794) 2023-09-20 16:19:42 +05:30
V850ES CI-CD Updates (#768) 2023-09-05 14:24:04 -07:00