mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
Update core ID before getting locks in prvCheckForRunStateChange()
This commit is contained in:
parent
11ee86a9d5
commit
6f06046998
3
tasks.c
3
tasks.c
|
@ -853,9 +853,10 @@ static void prvAddNewTaskToReadyList( TCB_t * pxNewTCB ) PRIVILEGED_FUNCTION;
|
||||||
* its run state. */
|
* its run state. */
|
||||||
|
|
||||||
portDISABLE_INTERRUPTS();
|
portDISABLE_INTERRUPTS();
|
||||||
|
|
||||||
|
xCoreID = ( BaseType_t ) portGET_CORE_ID();
|
||||||
portGET_TASK_LOCK( xCoreID );
|
portGET_TASK_LOCK( xCoreID );
|
||||||
portGET_ISR_LOCK( xCoreID );
|
portGET_ISR_LOCK( xCoreID );
|
||||||
xCoreID = ( BaseType_t ) portGET_CORE_ID();
|
|
||||||
|
|
||||||
portSET_CRITICAL_NESTING_COUNT( xCoreID, uxPrevCriticalNesting );
|
portSET_CRITICAL_NESTING_COUNT( xCoreID, uxPrevCriticalNesting );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue