]> granicus.if.org Git - esp-idf/commitdiff
freertos: pass TCB rather than the array to trace functions
authorIvan Grokhotkov <ivan@espressif.com>
Wed, 28 Nov 2018 04:19:18 +0000 (12:19 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Wed, 28 Nov 2018 04:26:34 +0000 (12:26 +0800)
components/freertos/tasks.c

index b53fe5c756818ac78da52c7a0a98c102dea949ef..06ec1db684836b33eb3d82edc7d92ee522e3efd3 100644 (file)
@@ -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