mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-09 20:41:14 +00:00
freertos: added core-ID member to task status structure aloowing its tracing.
Closes https://github.com/espressif/esp-idf/issues/5763
This commit is contained in:

committed by
Angus Gratton

parent
f3783ba258
commit
656b706ea4
@@ -4092,6 +4092,10 @@ static void prvCheckTasksWaitingTermination( void )
|
||||
pxTaskStatus->pxStackBase = pxTCB->pxStack;
|
||||
pxTaskStatus->xTaskNumber = pxTCB->uxTCBNumber;
|
||||
|
||||
#if ( configTASKLIST_INCLUDE_COREID == 1 )
|
||||
pxTaskStatus.xCoreID = pxTCB->xCoreID;
|
||||
#endif /* configTASKLIST_INCLUDE_COREID */
|
||||
|
||||
#if ( configUSE_MUTEXES == 1 )
|
||||
{
|
||||
pxTaskStatus->uxBasePriority = pxTCB->uxBasePriority;
|
||||
@@ -4303,6 +4307,20 @@ BaseType_t xTaskGetAffinity( TaskHandle_t xTask )
|
||||
|
||||
#endif /* INCLUDE_uxTaskGetStackHighWaterMark */
|
||||
/*-----------------------------------------------------------*/
|
||||
#if (INCLUDE_pxTaskGetStackStart == 1)
|
||||
|
||||
uint8_t* pxTaskGetStackStart( TaskHandle_t xTask)
|
||||
{
|
||||
TCB_t *pxTCB;
|
||||
uint8_t* uxReturn;
|
||||
|
||||
pxTCB = prvGetTCBFromHandle( xTask );
|
||||
uxReturn = (uint8_t*)pxTCB->pxStack;
|
||||
|
||||
return uxReturn;
|
||||
}
|
||||
|
||||
#endif /* INCLUDE_pxTaskGetStackStart */
|
||||
|
||||
#if ( INCLUDE_vTaskDelete == 1 )
|
||||
|
||||
|
Reference in New Issue
Block a user