Lines Matching refs:pxNewTCB
544 TCB_t * pxNewTCB,
551 static void prvAddNewTaskToReadyList( TCB_t * pxNewTCB ) PRIVILEGED_FUNCTION;
576 TCB_t * pxNewTCB; in xTaskCreateStatic() local
597 …pxNewTCB = ( TCB_t * ) pxTaskBuffer; /*lint !e740 !e9087 Unusual cast is ok as the structures are … in xTaskCreateStatic()
598 memset( ( void * ) pxNewTCB, 0x00, sizeof( TCB_t ) ); in xTaskCreateStatic()
599 pxNewTCB->pxStack = ( StackType_t * ) puxStackBuffer; in xTaskCreateStatic()
605 pxNewTCB->ucStaticallyAllocated = tskSTATICALLY_ALLOCATED_STACK_AND_TCB; in xTaskCreateStatic()
609 …iseNewTask( pxTaskCode, pcName, ulStackDepth, pvParameters, uxPriority, &xReturn, pxNewTCB, NULL ); in xTaskCreateStatic()
610 prvAddNewTaskToReadyList( pxNewTCB ); in xTaskCreateStatic()
628 TCB_t * pxNewTCB; in xTaskCreateRestrictedStatic() local
639 pxNewTCB = ( TCB_t * ) pxTaskDefinition->pxTaskBuffer; in xTaskCreateRestrictedStatic()
640 memset( ( void * ) pxNewTCB, 0x00, sizeof( TCB_t ) ); in xTaskCreateRestrictedStatic()
643 pxNewTCB->pxStack = pxTaskDefinition->puxStackBuffer; in xTaskCreateRestrictedStatic()
649 pxNewTCB->ucStaticallyAllocated = tskSTATICALLY_ALLOCATED_STACK_AND_TCB; in xTaskCreateRestrictedStatic()
658 pxCreatedTask, pxNewTCB, in xTaskCreateRestrictedStatic()
661 prvAddNewTaskToReadyList( pxNewTCB ); in xTaskCreateRestrictedStatic()
676 TCB_t * pxNewTCB; in xTaskCreateRestricted() local
686 pxNewTCB = ( TCB_t * ) pvPortMalloc( sizeof( TCB_t ) ); in xTaskCreateRestricted()
688 if( pxNewTCB != NULL ) in xTaskCreateRestricted()
690 memset( ( void * ) pxNewTCB, 0x00, sizeof( TCB_t ) ); in xTaskCreateRestricted()
693 pxNewTCB->pxStack = pxTaskDefinition->puxStackBuffer; in xTaskCreateRestricted()
700 pxNewTCB->ucStaticallyAllocated = tskSTATICALLY_ALLOCATED_STACK_ONLY; in xTaskCreateRestricted()
709 pxCreatedTask, pxNewTCB, in xTaskCreateRestricted()
712 prvAddNewTaskToReadyList( pxNewTCB ); in xTaskCreateRestricted()
732 TCB_t * pxNewTCB; in xTaskCreate() local
743 pxNewTCB = ( TCB_t * ) pvPortMalloc( sizeof( TCB_t ) ); in xTaskCreate()
745 if( pxNewTCB != NULL ) in xTaskCreate()
747 memset( ( void * ) pxNewTCB, 0x00, sizeof( TCB_t ) ); in xTaskCreate()
752 …pxNewTCB->pxStack = ( StackType_t * ) pvPortMallocStack( ( ( ( size_t ) usStackDepth ) * sizeof( S… in xTaskCreate()
754 if( pxNewTCB->pxStack == NULL ) in xTaskCreate()
757 vPortFree( pxNewTCB ); in xTaskCreate()
758 pxNewTCB = NULL; in xTaskCreate()
772 …pxNewTCB = ( TCB_t * ) pvPortMalloc( sizeof( TCB_t ) ); /*lint !e9087 !e9079 All values returned b… in xTaskCreate()
774 if( pxNewTCB != NULL ) in xTaskCreate()
776 memset( ( void * ) pxNewTCB, 0x00, sizeof( TCB_t ) ); in xTaskCreate()
779 pxNewTCB->pxStack = pxStack; in xTaskCreate()
790 pxNewTCB = NULL; in xTaskCreate()
795 if( pxNewTCB != NULL ) in xTaskCreate()
801 pxNewTCB->ucStaticallyAllocated = tskDYNAMICALLY_ALLOCATED_STACK_AND_TCB; in xTaskCreate()
805 …Code, pcName, ( uint32_t ) usStackDepth, pvParameters, uxPriority, pxCreatedTask, pxNewTCB, NULL ); in xTaskCreate()
806 prvAddNewTaskToReadyList( pxNewTCB ); in xTaskCreate()
826 TCB_t * pxNewTCB, in prvInitialiseNewTask() argument
851 …( void ) memset( pxNewTCB->pxStack, ( int ) tskSTACK_FILL_BYTE, ( size_t ) ulStackDepth * sizeof( … in prvInitialiseNewTask()
861 pxTopOfStack = &( pxNewTCB->pxStack[ ulStackDepth - ( uint32_t ) 1 ] ); in prvInitialiseNewTask()
871 pxNewTCB->pxEndOfStack = pxTopOfStack; in prvInitialiseNewTask()
877 pxTopOfStack = pxNewTCB->pxStack; in prvInitialiseNewTask()
880 …configASSERT( ( ( ( portPOINTER_SIZE_TYPE ) pxNewTCB->pxStack & ( portPOINTER_SIZE_TYPE ) portBYTE… in prvInitialiseNewTask()
884 pxNewTCB->pxEndOfStack = pxNewTCB->pxStack + ( ulStackDepth - ( uint32_t ) 1 ); in prvInitialiseNewTask()
893 pxNewTCB->pcTaskName[ x ] = pcName[ x ]; in prvInitialiseNewTask()
910 pxNewTCB->pcTaskName[ configMAX_TASK_NAME_LEN - 1 ] = '\0'; in prvInitialiseNewTask()
929 pxNewTCB->uxPriority = uxPriority; in prvInitialiseNewTask()
932 pxNewTCB->uxBasePriority = uxPriority; in prvInitialiseNewTask()
936 vListInitialiseItem( &( pxNewTCB->xStateListItem ) ); in prvInitialiseNewTask()
937 vListInitialiseItem( &( pxNewTCB->xEventListItem ) ); in prvInitialiseNewTask()
941 listSET_LIST_ITEM_OWNER( &( pxNewTCB->xStateListItem ), pxNewTCB ); in prvInitialiseNewTask()
944 …listSET_LIST_ITEM_VALUE( &( pxNewTCB->xEventListItem ), ( TickType_t ) configMAX_PRIORITIES - ( Ti… in prvInitialiseNewTask()
945 listSET_LIST_ITEM_OWNER( &( pxNewTCB->xEventListItem ), pxNewTCB ); in prvInitialiseNewTask()
949 …vPortStoreTaskMPUSettings( &( pxNewTCB->xMPUSettings ), xRegions, pxNewTCB->pxStack, ulStackDepth … in prvInitialiseNewTask()
961 configINIT_TLS_BLOCK( pxNewTCB->xTLSBlock, pxTopOfStack ); in prvInitialiseNewTask()
978 …pxNewTCB->pxTopOfStack = pxPortInitialiseStack( pxTopOfStack, pxNewTCB->pxStack, pxTaskCode, pvPar… in prvInitialiseNewTask()
982 …pxNewTCB->pxTopOfStack = pxPortInitialiseStack( pxTopOfStack, pxNewTCB->pxEndOfStack, pxTaskCode, … in prvInitialiseNewTask()
988 …pxNewTCB->pxTopOfStack = pxPortInitialiseStack( pxTopOfStack, pxTaskCode, pvParameters, xRunPrivil… in prvInitialiseNewTask()
1001 …pxNewTCB->pxTopOfStack = pxPortInitialiseStack( pxTopOfStack, pxNewTCB->pxStack, pxTaskCode, pvPar… in prvInitialiseNewTask()
1005 …pxNewTCB->pxTopOfStack = pxPortInitialiseStack( pxTopOfStack, pxNewTCB->pxEndOfStack, pxTaskCode, … in prvInitialiseNewTask()
1011 … pxNewTCB->pxTopOfStack = pxPortInitialiseStack( pxTopOfStack, pxTaskCode, pvParameters ); in prvInitialiseNewTask()
1021 *pxCreatedTask = ( TaskHandle_t ) pxNewTCB; in prvInitialiseNewTask()
1030 static void prvAddNewTaskToReadyList( TCB_t * pxNewTCB ) in prvAddNewTaskToReadyList() argument
1042 pxCurrentTCB = pxNewTCB; in prvAddNewTaskToReadyList()
1063 if( pxCurrentTCB->uxPriority <= pxNewTCB->uxPriority ) in prvAddNewTaskToReadyList()
1065 pxCurrentTCB = pxNewTCB; in prvAddNewTaskToReadyList()
1083 pxNewTCB->uxTCBNumber = uxTaskNumber; in prvAddNewTaskToReadyList()
1086 traceTASK_CREATE( pxNewTCB ); in prvAddNewTaskToReadyList()
1088 prvAddTaskToReadyList( pxNewTCB ); in prvAddNewTaskToReadyList()
1090 portSETUP_TCB( pxNewTCB ); in prvAddNewTaskToReadyList()
1098 if( pxCurrentTCB->uxPriority < pxNewTCB->uxPriority ) in prvAddNewTaskToReadyList()