Lines Matching refs:pxNewTCB
705 TCB_t * pxNewTCB,
712 static void prvAddNewTaskToReadyList( TCB_t * pxNewTCB ) PRIVILEGED_FUNCTION;
1263 TCB_t * pxNewTCB; in prvCreateStaticTask() local
1286 pxNewTCB = ( TCB_t * ) pxTaskBuffer; in prvCreateStaticTask()
1287 ( void ) memset( ( void * ) pxNewTCB, 0x00, sizeof( TCB_t ) ); in prvCreateStaticTask()
1288 pxNewTCB->pxStack = ( StackType_t * ) puxStackBuffer; in prvCreateStaticTask()
1294 pxNewTCB->ucStaticallyAllocated = tskSTATICALLY_ALLOCATED_STACK_AND_TCB; in prvCreateStaticTask()
1298 …wTask( pxTaskCode, pcName, uxStackDepth, pvParameters, uxPriority, pxCreatedTask, pxNewTCB, NULL ); in prvCreateStaticTask()
1302 pxNewTCB = NULL; in prvCreateStaticTask()
1305 return pxNewTCB; in prvCreateStaticTask()
1318 TCB_t * pxNewTCB; in xTaskCreateStatic() local
1322 …pxNewTCB = prvCreateStaticTask( pxTaskCode, pcName, uxStackDepth, pvParameters, uxPriority, puxSta… in xTaskCreateStatic()
1324 if( pxNewTCB != NULL ) in xTaskCreateStatic()
1329 pxNewTCB->uxCoreAffinityMask = configTASK_DEFAULT_CORE_AFFINITY; in xTaskCreateStatic()
1333 prvAddNewTaskToReadyList( pxNewTCB ); in xTaskCreateStatic()
1357 TCB_t * pxNewTCB; in xTaskCreateStaticAffinitySet() local
1361 …pxNewTCB = prvCreateStaticTask( pxTaskCode, pcName, uxStackDepth, pvParameters, uxPriority, puxSta… in xTaskCreateStaticAffinitySet()
1363 if( pxNewTCB != NULL ) in xTaskCreateStaticAffinitySet()
1366 pxNewTCB->uxCoreAffinityMask = uxCoreAffinityMask; in xTaskCreateStaticAffinitySet()
1368 prvAddNewTaskToReadyList( pxNewTCB ); in xTaskCreateStaticAffinitySet()
1388 TCB_t * pxNewTCB; in prvCreateRestrictedStaticTask() local
1398 pxNewTCB = ( TCB_t * ) pxTaskDefinition->pxTaskBuffer; in prvCreateRestrictedStaticTask()
1399 ( void ) memset( ( void * ) pxNewTCB, 0x00, sizeof( TCB_t ) ); in prvCreateRestrictedStaticTask()
1402 pxNewTCB->pxStack = pxTaskDefinition->puxStackBuffer; in prvCreateRestrictedStaticTask()
1408 pxNewTCB->ucStaticallyAllocated = tskSTATICALLY_ALLOCATED_STACK_AND_TCB; in prvCreateRestrictedStaticTask()
1417 pxCreatedTask, pxNewTCB, in prvCreateRestrictedStaticTask()
1422 pxNewTCB = NULL; in prvCreateRestrictedStaticTask()
1425 return pxNewTCB; in prvCreateRestrictedStaticTask()
1432 TCB_t * pxNewTCB; in xTaskCreateRestrictedStatic() local
1439 pxNewTCB = prvCreateRestrictedStaticTask( pxTaskDefinition, pxCreatedTask ); in xTaskCreateRestrictedStatic()
1441 if( pxNewTCB != NULL ) in xTaskCreateRestrictedStatic()
1446 pxNewTCB->uxCoreAffinityMask = configTASK_DEFAULT_CORE_AFFINITY; in xTaskCreateRestrictedStatic()
1450 prvAddNewTaskToReadyList( pxNewTCB ); in xTaskCreateRestrictedStatic()
1469 TCB_t * pxNewTCB; in xTaskCreateRestrictedStaticAffinitySet() local
1476 pxNewTCB = prvCreateRestrictedStaticTask( pxTaskDefinition, pxCreatedTask ); in xTaskCreateRestrictedStaticAffinitySet()
1478 if( pxNewTCB != NULL ) in xTaskCreateRestrictedStaticAffinitySet()
1481 pxNewTCB->uxCoreAffinityMask = uxCoreAffinityMask; in xTaskCreateRestrictedStaticAffinitySet()
1483 prvAddNewTaskToReadyList( pxNewTCB ); in xTaskCreateRestrictedStaticAffinitySet()
1504 TCB_t * pxNewTCB; in prvCreateRestrictedTask() local
1513 pxNewTCB = ( TCB_t * ) pvPortMalloc( sizeof( TCB_t ) ); in prvCreateRestrictedTask()
1515 if( pxNewTCB != NULL ) in prvCreateRestrictedTask()
1517 ( void ) memset( ( void * ) pxNewTCB, 0x00, sizeof( TCB_t ) ); in prvCreateRestrictedTask()
1520 pxNewTCB->pxStack = pxTaskDefinition->puxStackBuffer; in prvCreateRestrictedTask()
1527 pxNewTCB->ucStaticallyAllocated = tskSTATICALLY_ALLOCATED_STACK_ONLY; in prvCreateRestrictedTask()
1536 pxCreatedTask, pxNewTCB, in prvCreateRestrictedTask()
1542 pxNewTCB = NULL; in prvCreateRestrictedTask()
1545 return pxNewTCB; in prvCreateRestrictedTask()
1552 TCB_t * pxNewTCB; in xTaskCreateRestricted() local
1557 pxNewTCB = prvCreateRestrictedTask( pxTaskDefinition, pxCreatedTask ); in xTaskCreateRestricted()
1559 if( pxNewTCB != NULL ) in xTaskCreateRestricted()
1564 pxNewTCB->uxCoreAffinityMask = configTASK_DEFAULT_CORE_AFFINITY; in xTaskCreateRestricted()
1568 prvAddNewTaskToReadyList( pxNewTCB ); in xTaskCreateRestricted()
1588 TCB_t * pxNewTCB; in xTaskCreateRestrictedAffinitySet() local
1593 pxNewTCB = prvCreateRestrictedTask( pxTaskDefinition, pxCreatedTask ); in xTaskCreateRestrictedAffinitySet()
1595 if( pxNewTCB != NULL ) in xTaskCreateRestrictedAffinitySet()
1598 pxNewTCB->uxCoreAffinityMask = uxCoreAffinityMask; in xTaskCreateRestrictedAffinitySet()
1600 prvAddNewTaskToReadyList( pxNewTCB ); in xTaskCreateRestrictedAffinitySet()
1627 TCB_t * pxNewTCB; in prvCreateTask() local
1640 pxNewTCB = ( TCB_t * ) pvPortMalloc( sizeof( TCB_t ) ); in prvCreateTask()
1642 if( pxNewTCB != NULL ) in prvCreateTask()
1644 ( void ) memset( ( void * ) pxNewTCB, 0x00, sizeof( TCB_t ) ); in prvCreateTask()
1652 …pxNewTCB->pxStack = ( StackType_t * ) pvPortMallocStack( ( ( ( size_t ) uxStackDepth ) * sizeof( S… in prvCreateTask()
1654 if( pxNewTCB->pxStack == NULL ) in prvCreateTask()
1657 vPortFree( pxNewTCB ); in prvCreateTask()
1658 pxNewTCB = NULL; in prvCreateTask()
1678 pxNewTCB = ( TCB_t * ) pvPortMalloc( sizeof( TCB_t ) ); in prvCreateTask()
1680 if( pxNewTCB != NULL ) in prvCreateTask()
1682 ( void ) memset( ( void * ) pxNewTCB, 0x00, sizeof( TCB_t ) ); in prvCreateTask()
1685 pxNewTCB->pxStack = pxStack; in prvCreateTask()
1696 pxNewTCB = NULL; in prvCreateTask()
1701 if( pxNewTCB != NULL ) in prvCreateTask()
1707 pxNewTCB->ucStaticallyAllocated = tskDYNAMICALLY_ALLOCATED_STACK_AND_TCB; in prvCreateTask()
1711 …wTask( pxTaskCode, pcName, uxStackDepth, pvParameters, uxPriority, pxCreatedTask, pxNewTCB, NULL ); in prvCreateTask()
1714 return pxNewTCB; in prvCreateTask()
1725 TCB_t * pxNewTCB; in xTaskCreate() local
1730 …pxNewTCB = prvCreateTask( pxTaskCode, pcName, uxStackDepth, pvParameters, uxPriority, pxCreatedTas… in xTaskCreate()
1732 if( pxNewTCB != NULL ) in xTaskCreate()
1737 pxNewTCB->uxCoreAffinityMask = configTASK_DEFAULT_CORE_AFFINITY; in xTaskCreate()
1741 prvAddNewTaskToReadyList( pxNewTCB ); in xTaskCreate()
1764 TCB_t * pxNewTCB; in xTaskCreateAffinitySet() local
1769 …pxNewTCB = prvCreateTask( pxTaskCode, pcName, uxStackDepth, pvParameters, uxPriority, pxCreatedTas… in xTaskCreateAffinitySet()
1771 if( pxNewTCB != NULL ) in xTaskCreateAffinitySet()
1774 pxNewTCB->uxCoreAffinityMask = uxCoreAffinityMask; in xTaskCreateAffinitySet()
1776 prvAddNewTaskToReadyList( pxNewTCB ); in xTaskCreateAffinitySet()
1799 TCB_t * pxNewTCB, in prvInitialiseNewTask() argument
1824 …( void ) memset( pxNewTCB->pxStack, ( int ) tskSTACK_FILL_BYTE, ( size_t ) uxStackDepth * sizeof( … in prvInitialiseNewTask()
1834 pxTopOfStack = &( pxNewTCB->pxStack[ uxStackDepth - ( configSTACK_DEPTH_TYPE ) 1 ] ); in prvInitialiseNewTask()
1844 pxNewTCB->pxEndOfStack = pxTopOfStack; in prvInitialiseNewTask()
1850 pxTopOfStack = pxNewTCB->pxStack; in prvInitialiseNewTask()
1858 … pxNewTCB->pxEndOfStack = pxNewTCB->pxStack + ( uxStackDepth - ( configSTACK_DEPTH_TYPE ) 1 ); in prvInitialiseNewTask()
1867 pxNewTCB->pcTaskName[ x ] = pcName[ x ]; in prvInitialiseNewTask()
1884 pxNewTCB->pcTaskName[ configMAX_TASK_NAME_LEN - 1U ] = '\0'; in prvInitialiseNewTask()
1903 pxNewTCB->uxPriority = uxPriority; in prvInitialiseNewTask()
1906 pxNewTCB->uxBasePriority = uxPriority; in prvInitialiseNewTask()
1910 vListInitialiseItem( &( pxNewTCB->xStateListItem ) ); in prvInitialiseNewTask()
1911 vListInitialiseItem( &( pxNewTCB->xEventListItem ) ); in prvInitialiseNewTask()
1915 listSET_LIST_ITEM_OWNER( &( pxNewTCB->xStateListItem ), pxNewTCB ); in prvInitialiseNewTask()
1918 …listSET_LIST_ITEM_VALUE( &( pxNewTCB->xEventListItem ), ( TickType_t ) configMAX_PRIORITIES - ( Ti… in prvInitialiseNewTask()
1919 listSET_LIST_ITEM_OWNER( &( pxNewTCB->xEventListItem ), pxNewTCB ); in prvInitialiseNewTask()
1923 …vPortStoreTaskMPUSettings( &( pxNewTCB->xMPUSettings ), xRegions, pxNewTCB->pxStack, uxStackDepth … in prvInitialiseNewTask()
1935 configINIT_TLS_BLOCK( pxNewTCB->xTLSBlock, pxTopOfStack ); in prvInitialiseNewTask()
1952 …pxNewTCB->pxTopOfStack = pxPortInitialiseStack( pxTopOfStack, pxNewTCB->pxStack, pxTaskCode, pvPar… in prvInitialiseNewTask()
1956 …pxNewTCB->pxTopOfStack = pxPortInitialiseStack( pxTopOfStack, pxNewTCB->pxEndOfStack, pxTaskCode, … in prvInitialiseNewTask()
1962 …pxNewTCB->pxTopOfStack = pxPortInitialiseStack( pxTopOfStack, pxTaskCode, pvParameters, xRunPrivil… in prvInitialiseNewTask()
1975 …pxNewTCB->pxTopOfStack = pxPortInitialiseStack( pxTopOfStack, pxNewTCB->pxStack, pxTaskCode, pvPar… in prvInitialiseNewTask()
1979 …pxNewTCB->pxTopOfStack = pxPortInitialiseStack( pxTopOfStack, pxNewTCB->pxEndOfStack, pxTaskCode, … in prvInitialiseNewTask()
1985 … pxNewTCB->pxTopOfStack = pxPortInitialiseStack( pxTopOfStack, pxTaskCode, pvParameters ); in prvInitialiseNewTask()
1994 pxNewTCB->xTaskRunState = taskTASK_NOT_RUNNING; in prvInitialiseNewTask()
1999 pxNewTCB->uxTaskAttributes |= taskATTRIBUTE_IS_IDLE; in prvInitialiseNewTask()
2008 *pxCreatedTask = ( TaskHandle_t ) pxNewTCB; in prvInitialiseNewTask()
2019 static void prvAddNewTaskToReadyList( TCB_t * pxNewTCB ) in prvAddNewTaskToReadyList() argument
2031 pxCurrentTCB = pxNewTCB; in prvAddNewTaskToReadyList()
2052 if( pxCurrentTCB->uxPriority <= pxNewTCB->uxPriority ) in prvAddNewTaskToReadyList()
2054 pxCurrentTCB = pxNewTCB; in prvAddNewTaskToReadyList()
2072 pxNewTCB->uxTCBNumber = uxTaskNumber; in prvAddNewTaskToReadyList()
2075 traceTASK_CREATE( pxNewTCB ); in prvAddNewTaskToReadyList()
2077 prvAddTaskToReadyList( pxNewTCB ); in prvAddNewTaskToReadyList()
2079 portSETUP_TCB( pxNewTCB ); in prvAddNewTaskToReadyList()
2087 taskYIELD_ANY_CORE_IF_USING_PREEMPTION( pxNewTCB ); in prvAddNewTaskToReadyList()
2097 static void prvAddNewTaskToReadyList( TCB_t * pxNewTCB ) in prvAddNewTaskToReadyList() argument
2129 pxNewTCB->uxTCBNumber = uxTaskNumber; in prvAddNewTaskToReadyList()
2132 traceTASK_CREATE( pxNewTCB ); in prvAddNewTaskToReadyList()
2134 prvAddTaskToReadyList( pxNewTCB ); in prvAddNewTaskToReadyList()
2136 portSETUP_TCB( pxNewTCB ); in prvAddNewTaskToReadyList()
2143 taskYIELD_ANY_CORE_IF_USING_PREEMPTION( pxNewTCB ); in prvAddNewTaskToReadyList()