Lines Matching refs:xCoreID
196 … #define taskSELECT_HIGHEST_PRIORITY_TASK( xCoreID ) prvSelectHighestPriorityTask( xCoreID ) argument
333 #define prvYieldCore( xCoreID ) \ argument
335 if( ( xCoreID ) == ( BaseType_t ) portGET_CORE_ID() ) \
338 xYieldPendings[ ( xCoreID ) ] = pdTRUE; \
343 if( pxCurrentTCBs[ ( xCoreID ) ]->xTaskRunState != taskTASK_SCHEDULED_TO_YIELD ) \
345 portYIELD_CORE( xCoreID ); \
346 pxCurrentTCBs[ ( xCoreID ) ]->xTaskRunState = taskTASK_SCHEDULED_TO_YIELD; \
557 static void prvSelectHighestPriorityTask( BaseType_t xCoreID );
874 BaseType_t xCoreID; in prvYieldForTask() local
899 … for( xCoreID = ( BaseType_t ) 0; xCoreID < ( BaseType_t ) configNUMBER_OF_CORES; xCoreID++ ) in prvYieldForTask()
901 xCurrentCoreTaskPriority = ( BaseType_t ) pxCurrentTCBs[ xCoreID ]->uxPriority; in prvYieldForTask()
904 if( ( pxCurrentTCBs[ xCoreID ]->uxTaskAttributes & taskATTRIBUTE_IS_IDLE ) != 0U ) in prvYieldForTask()
909 …if( ( taskTASK_IS_RUNNING( pxCurrentTCBs[ xCoreID ] ) != pdFALSE ) && ( xYieldPendings[ xCoreID ] … in prvYieldForTask()
918 … if( ( pxTCB->uxCoreAffinityMask & ( ( UBaseType_t ) 1U << ( UBaseType_t ) xCoreID ) ) != 0U ) in prvYieldForTask()
922 if( pxCurrentTCBs[ xCoreID ]->xPreemptionDisable == pdFALSE ) in prvYieldForTask()
926 xLowestPriorityCore = xCoreID; in prvYieldForTask()
943 prvYieldCore( xCoreID ); in prvYieldForTask()
983 static void prvSelectHighestPriorityTask( BaseType_t xCoreID ) in prvSelectHighestPriorityTask() argument
1010 if( listIS_CONTAINED_WITHIN( &( pxReadyTasksLists[ pxCurrentTCBs[ xCoreID ]->uxPriority ] ), in prvSelectHighestPriorityTask()
1011 &pxCurrentTCBs[ xCoreID ]->xStateListItem ) == pdTRUE ) in prvSelectHighestPriorityTask()
1013 ( void ) uxListRemove( &pxCurrentTCBs[ xCoreID ]->xStateListItem ); in prvSelectHighestPriorityTask()
1014 vListInsertEnd( &( pxReadyTasksLists[ pxCurrentTCBs[ xCoreID ]->uxPriority ] ), in prvSelectHighestPriorityTask()
1015 &pxCurrentTCBs[ xCoreID ]->xStateListItem ); in prvSelectHighestPriorityTask()
1067 … if( ( pxTCB->uxCoreAffinityMask & ( ( UBaseType_t ) 1U << ( UBaseType_t ) xCoreID ) ) != 0U ) in prvSelectHighestPriorityTask()
1071 pxCurrentTCBs[ xCoreID ]->xTaskRunState = taskTASK_NOT_RUNNING; in prvSelectHighestPriorityTask()
1073 pxPreviousTCB = pxCurrentTCBs[ xCoreID ]; in prvSelectHighestPriorityTask()
1075 pxTCB->xTaskRunState = xCoreID; in prvSelectHighestPriorityTask()
1076 pxCurrentTCBs[ xCoreID ] = pxTCB; in prvSelectHighestPriorityTask()
1080 else if( pxTCB == pxCurrentTCBs[ xCoreID ] ) in prvSelectHighestPriorityTask()
1082 …configASSERT( ( pxTCB->xTaskRunState == xCoreID ) || ( pxTCB->xTaskRunState == taskTASK_SCHEDULED_… in prvSelectHighestPriorityTask()
1085 … if( ( pxTCB->uxCoreAffinityMask & ( ( UBaseType_t ) 1U << ( UBaseType_t ) xCoreID ) ) != 0U ) in prvSelectHighestPriorityTask()
1089 pxTCB->xTaskRunState = xCoreID; in prvSelectHighestPriorityTask()
1176 if( ( uxCoreMap & ( ( UBaseType_t ) 1U << ( UBaseType_t ) xCoreID ) ) != 0U ) in prvSelectHighestPriorityTask()
1196 uxCoreMap &= ~( pxCurrentTCBs[ xCoreID ]->uxCoreAffinityMask ); in prvSelectHighestPriorityTask()
2982 BaseType_t xCoreID; in vTaskCoreAffinitySet() local
3002 xCoreID = ( BaseType_t ) pxTCB->xTaskRunState; in vTaskCoreAffinitySet()
3006 … if( ( uxCoreAffinityMask & ( ( UBaseType_t ) 1U << ( UBaseType_t ) xCoreID ) ) == 0U ) in vTaskCoreAffinitySet()
3008 prvYieldCore( xCoreID ); in vTaskCoreAffinitySet()
3092 BaseType_t xCoreID; in vTaskPreemptionEnable() local
3106 xCoreID = ( BaseType_t ) pxTCB->xTaskRunState; in vTaskPreemptionEnable()
3107 prvYieldCore( xCoreID ); in vTaskPreemptionEnable()
3514 BaseType_t xCoreID; in prvCreateIdleTasks() local
3537 for( xCoreID = ( BaseType_t ) 0; xCoreID < ( BaseType_t ) configNUMBER_OF_CORES; xCoreID++ ) in prvCreateIdleTasks()
3548 if( xCoreID == 0 ) in prvCreateIdleTasks()
3567 cIdleName[ xIdleTaskNameIndex ] = ( char ) ( xCoreID + '0' ); in prvCreateIdleTasks()
3600 if( xCoreID == 0 ) in prvCreateIdleTasks()
3606 …xIdleTaskTCBBuffer, &pxIdleTaskStackBuffer, &uxIdleTaskStackSize, ( BaseType_t ) ( xCoreID - 1 ) ); in prvCreateIdleTasks()
3610 xIdleTaskHandles[ xCoreID ] = xTaskCreateStatic( pxIdleTaskFunction, in prvCreateIdleTasks()
3618 if( xIdleTaskHandles[ xCoreID ] != NULL ) in prvCreateIdleTasks()
3635 &xIdleTaskHandles[ xCoreID ] ); in prvCreateIdleTasks()
3653 xIdleTaskHandles[ xCoreID ]->xTaskRunState = xCoreID; in prvCreateIdleTasks()
3654 pxCurrentTCBs[ xCoreID ] = xIdleTaskHandles[ xCoreID ]; in prvCreateIdleTasks()
3774 BaseType_t xCoreID; in vTaskEndScheduler() local
3784 for( xCoreID = 0; xCoreID < ( BaseType_t ) configNUMBER_OF_CORES; xCoreID++ ) in vTaskEndScheduler()
3786 vTaskDelete( xIdleTaskHandles[ xCoreID ] ); in vTaskEndScheduler()
3974 BaseType_t xCoreID; in xTaskResumeAll() local
3975 xCoreID = ( BaseType_t ) portGET_CORE_ID(); in xTaskResumeAll()
4007 xYieldPendings[ xCoreID ] = pdTRUE; in xTaskResumeAll()
4054 xYieldPendings[ xCoreID ] = pdTRUE; in xTaskResumeAll()
4072 if( xYieldPendings[ xCoreID ] != pdFALSE ) in xTaskResumeAll()
4479 TaskHandle_t xTaskGetIdleTaskHandleForCore( BaseType_t xCoreID ) in xTaskGetIdleTaskHandleForCore() argument
4481 traceENTER_xTaskGetIdleTaskHandleForCore( xCoreID ); in xTaskGetIdleTaskHandleForCore()
4484 configASSERT( taskVALID_CORE_ID( xCoreID ) == pdTRUE ); in xTaskGetIdleTaskHandleForCore()
4488 configASSERT( ( xIdleTaskHandles[ xCoreID ] != NULL ) ); in xTaskGetIdleTaskHandleForCore()
4490 traceRETURN_xTaskGetIdleTaskHandleForCore( xIdleTaskHandles[ xCoreID ] ); in xTaskGetIdleTaskHandleForCore()
4492 return xIdleTaskHandles[ xCoreID ]; in xTaskGetIdleTaskHandleForCore()
4825 BaseType_t xCoreID; in xTaskIncrementTick()
4827 for( xCoreID = 0; xCoreID < ( ( BaseType_t ) configNUMBER_OF_CORES ); xCoreID++ ) in xTaskIncrementTick()
4829 …if( listCURRENT_LIST_LENGTH( &( pxReadyTasksLists[ pxCurrentTCBs[ xCoreID ]->uxPriority ] ) ) > 1U… in xTaskIncrementTick()
4831 xYieldRequiredForCore[ xCoreID ] = pdTRUE; in xTaskIncrementTick()
4874 BaseType_t xCoreID, xCurrentCoreID; in xTaskIncrementTick()
4877 for( xCoreID = 0; xCoreID < ( BaseType_t ) configNUMBER_OF_CORES; xCoreID++ ) in xTaskIncrementTick()
4880 if( pxCurrentTCBs[ xCoreID ]->xPreemptionDisable == pdFALSE ) in xTaskIncrementTick()
4883 … if( ( xYieldRequiredForCore[ xCoreID ] != pdFALSE ) || ( xYieldPendings[ xCoreID ] != pdFALSE ) ) in xTaskIncrementTick()
4885 if( xCoreID == xCurrentCoreID ) in xTaskIncrementTick()
4891 prvYieldCore( xCoreID ); in xTaskIncrementTick()
5141 void vTaskSwitchContext( BaseType_t xCoreID ) in vTaskSwitchContext() argument
5165 xYieldPendings[ xCoreID ] = pdTRUE; in vTaskSwitchContext()
5169 xYieldPendings[ xCoreID ] = pdFALSE; in vTaskSwitchContext()
5175 portALT_GET_RUN_TIME_COUNTER_VALUE( ulTotalRunTime[ xCoreID ] ); in vTaskSwitchContext()
5177 ulTotalRunTime[ xCoreID ] = portGET_RUN_TIME_COUNTER_VALUE(); in vTaskSwitchContext()
5187 if( ulTotalRunTime[ xCoreID ] > ulTaskSwitchedInTime[ xCoreID ] ) in vTaskSwitchContext()
5189 …pxCurrentTCBs[ xCoreID ]->ulRunTimeCounter += ( ulTotalRunTime[ xCoreID ] - ulTaskSwitchedInTime[ … in vTaskSwitchContext()
5196 ulTaskSwitchedInTime[ xCoreID ] = ulTotalRunTime[ xCoreID ]; in vTaskSwitchContext()
5206 pxCurrentTCBs[ xCoreID ]->iTaskErrno = FreeRTOS_errno; in vTaskSwitchContext()
5211 taskSELECT_HIGHEST_PRIORITY_TASK( xCoreID ); in vTaskSwitchContext()
5222 FreeRTOS_errno = pxCurrentTCBs[ xCoreID ]->iTaskErrno; in vTaskSwitchContext()
5230 configSET_TLS_BLOCK( pxCurrentTCBs[ xCoreID ]->xTLSBlock ); in vTaskSwitchContext()
6515 TaskHandle_t xTaskGetCurrentTaskHandleForCore( BaseType_t xCoreID ) in xTaskGetCurrentTaskHandleForCore() argument
6519 traceENTER_xTaskGetCurrentTaskHandleForCore( xCoreID ); in xTaskGetCurrentTaskHandleForCore()
6521 if( taskVALID_CORE_ID( xCoreID ) != pdFALSE ) in xTaskGetCurrentTaskHandleForCore()
6526 xReturn = pxCurrentTCBs[ xCoreID ]; in xTaskGetCurrentTaskHandleForCore()
8647 BaseType_t xCoreID; in vTaskResetState() local
8675 for( xCoreID = 0; xCoreID < configNUMBER_OF_CORES; xCoreID++ ) in vTaskResetState()
8677 xYieldPendings[ xCoreID ] = pdFALSE; in vTaskResetState()
8688 for( xCoreID = 0; xCoreID < configNUMBER_OF_CORES; xCoreID++ ) in vTaskResetState()
8690 ulTaskSwitchedInTime[ xCoreID ] = 0U; in vTaskResetState()
8691 ulTotalRunTime[ xCoreID ] = 0U; in vTaskResetState()