File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -845,10 +845,11 @@ static void prvAddNewTaskToReadyList( TCB_t * pxNewTCB ) PRIVILEGED_FUNCTION;
845
845
846
846
portENABLE_INTERRUPTS ();
847
847
848
- /* Enabling interrupts should cause this core to immediately
849
- * service the pending interrupt and yield. If the run state is still
850
- * yielding here then that is a problem. */
851
- configASSERT ( pxThisTCB -> xTaskRunState != taskTASK_SCHEDULED_TO_YIELD );
848
+ /* Enabling interrupts should cause this core to immediately service
849
+ * the pending interrupt and yield. After servicing the pending interrupt,
850
+ * the task needs to re-evaluate its run state within this loop, as
851
+ * other cores may have requested this task to yield, potentially altering
852
+ * its run state. */
852
853
853
854
portDISABLE_INTERRUPTS ();
854
855
portGET_TASK_LOCK ();
You can’t perform that action at this time.
0 commit comments