mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-03 04:34:31 +02:00
freertos: pass TCB rather than the array to trace functions
This commit is contained in:
@@ -2951,7 +2951,7 @@ TickType_t xTimeToWake;
|
||||
/* Add the task to the suspended task list instead of a delayed task
|
||||
list to ensure the task is not woken by a timing event. It will
|
||||
block indefinitely. */
|
||||
traceMOVED_TASK_TO_SUSPENDED_LIST(pxCurrentTCB);
|
||||
traceMOVED_TASK_TO_SUSPENDED_LIST(pxCurrentTCB[ xPortGetCoreID() ]);
|
||||
vListInsertEnd( &xSuspendedTaskList, &( pxCurrentTCB[ xPortGetCoreID() ]->xGenericListItem ) );
|
||||
}
|
||||
else
|
||||
@@ -4651,7 +4651,7 @@ TickType_t uxReturn;
|
||||
of a delayed task list to ensure the task is not
|
||||
woken by a timing event. It will block
|
||||
indefinitely. */
|
||||
traceMOVED_TASK_TO_SUSPENDED_LIST(pxCurrentTCB);
|
||||
traceMOVED_TASK_TO_SUSPENDED_LIST(pxCurrentTCB[ xPortGetCoreID() ]);
|
||||
vListInsertEnd( &xSuspendedTaskList, &( pxCurrentTCB[ xPortGetCoreID() ]->xGenericListItem ) );
|
||||
}
|
||||
else
|
||||
@@ -4767,7 +4767,7 @@ TickType_t uxReturn;
|
||||
of a delayed task list to ensure the task is not
|
||||
woken by a timing event. It will block
|
||||
indefinitely. */
|
||||
traceMOVED_TASK_TO_SUSPENDED_LIST(pxCurrentTCB);
|
||||
traceMOVED_TASK_TO_SUSPENDED_LIST(pxCurrentTCB[ xPortGetCoreID() ]);
|
||||
vListInsertEnd( &xSuspendedTaskList, &( pxCurrentTCB[ xPortGetCoreID() ]->xGenericListItem ) );
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user