FreeRTOS-Kernel/portable/GCC
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
..
ARM7_AT91FR40008 CI-CD Updates (#768) 2023-09-05 14:24:04 -07:00
ARM7_AT91SAM7S CI-CD Updates (#768) 2023-09-05 14:24:04 -07:00
ARM7_LPC23xx CI-CD Updates (#768) 2023-09-05 14:24:04 -07:00
ARM7_LPC2000 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_CA53_64_BIT CI-CD Updates (#768) 2023-09-05 14:24:04 -07:00
ARM_CA53_64_BIT_SRE 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_CM3_MPU Fix portSWITCH_TO_USER_MODE() on Armv7-M MPU ports (#803) 2023-09-26 14:36:23 +05:30
ARM_CM4_MPU Fix portSWITCH_TO_USER_MODE() on Armv7-M MPU ports (#803) 2023-09-26 14:36:23 +05:30
ARM_CM4F Add trace hook macro for most ports (#794) 2023-09-20 16:19:42 +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_CR5 CI-CD Updates (#768) 2023-09-05 14:24:04 -07:00
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
AVR32_UC3 CI-CD Updates (#768) 2023-09-05 14:24:04 -07:00
AVR_AVRDx Remove AVR ports from main repo (#394) 2021-09-14 19:25:46 -07:00
AVR_Mega0 Remove AVR ports from main repo (#394) 2021-09-14 19:25:46 -07:00
ColdFire_V2 Add trace hook macro for most ports (#794) 2023-09-20 16:19:42 +05:30
CORTUS_APS3 CI-CD Updates (#768) 2023-09-05 14:24:04 -07:00
H8S2329 CI-CD Updates (#768) 2023-09-05 14:24:04 -07:00
HCS12 CI-CD Updates (#768) 2023-09-05 14:24:04 -07:00
IA32_flat CI-CD Updates (#768) 2023-09-05 14:24:04 -07:00
MCF5235 Replace two dashes and one whitespace with their corresponding ASCII characters. (#362) 2021-06-30 15:07:55 -07:00
MicroBlaze CI-CD Updates (#768) 2023-09-05 14:24:04 -07:00
MicroBlazeV8 CI-CD Updates (#768) 2023-09-05 14:24:04 -07:00
MicroBlazeV9 CI-CD Updates (#768) 2023-09-05 14:24:04 -07:00
MSP430F449 CI-CD Updates (#768) 2023-09-05 14:24:04 -07:00
NiosII Add trace hook macro for most ports (#794) 2023-09-20 16:19:42 +05:30
PPC405_Xilinx CI-CD Updates (#768) 2023-09-05 14:24:04 -07:00
PPC440_Xilinx 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
RX200 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
RX600v2 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
STR75x Add trace hook macro for most ports (#794) 2023-09-20 16:19:42 +05:30
TriCore_1782 CI-CD Updates (#768) 2023-09-05 14:24:04 -07:00