SoC common : freertos :Estimate the lastest version toolchain. [4/6]
PD#SWPL-175794
Problem:
Reimplement vTaskRename function cause compile warning.
Solution:
Reimplement vTaskRename function cause compile warning.
Verify:
N/A
Change-Id: I956c9836da5af5d1b3802f68095eb56fa4978433
Signed-off-by: xiaohu.huang <xiaohu.huang@amlogic.com>
diff --git a/aml_extend/aml_tasks_ext.c b/aml_extend/aml_tasks_ext.c
index e51d91a..3921a7a 100644
--- a/aml_extend/aml_tasks_ext.c
+++ b/aml_extend/aml_tasks_ext.c
@@ -26,17 +26,6 @@
}
#endif
-void vTaskRename(void *pvTaskHandle, const char *pcName)
-{
- TCB_t *pxTCB;
-
- pxTCB = prvGetTCBFromHandle((TaskHandle_t)pvTaskHandle);
- configASSERT(pxTCB);
-
- memcpy(pxTCB->pcTaskName, pcName, configMAX_TASK_NAME_LEN);
- pxTCB->pcTaskName[configMAX_TASK_NAME_LEN - 1] = '\0';
-}
-
uint8_t xTaskSetName(void *pvTaskHandle, const char *pcName)
{
TCB_t *pxTCB;
@@ -76,6 +65,11 @@
return xReturn;
}
+void vTaskRename(void *pvTaskHandle, const char *pcName)
+{
+ xTaskSetName(pvTaskHandle, pcName);
+}
+
void vTaskDumpStack(void *pvTaskHandle)
{
TCB_t *pxTCB;