This commit is contained in:
Ian Thompson 2025-04-11 22:32:20 +00:00 committed by GitHub
commit a4463ebd07
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3676,6 +3676,9 @@ static BaseType_t prvCreateIdleTasks( void )
/* Assign idle task to each core before SMP scheduler is running. */
xIdleTaskHandles[ xCoreID ]->xTaskRunState = xCoreID;
pxCurrentTCBs[ xCoreID ] = xIdleTaskHandles[ xCoreID ];
#if ( configUSE_CORE_AFFINITY == 1 )
vTaskCoreAffinitySet(xIdleTaskHandles[ xCoreID ], 1 << xCoreID);
#endif
}
#endif
}