fix: 在内核提示No idle TCB时,增加打印当前系统任务信息,以方便问题定位。

close: #I434UC

Signed-off-by: zff <zhangfanfan2@huawei.com>
Change-Id: If6cdb719412375c79356a50113a0efb45c8968f7
This commit is contained in:
YOUR_NAME 2021-07-30 12:52:31 +08:00
parent 2d8e59ccf3
commit 11a9b00d43
1 changed files with 3 additions and 0 deletions

View File

@ -599,6 +599,9 @@ LITE_OS_SEC_TEXT LosTaskCB *OsGetFreeTaskCB(VOID)
if (LOS_ListEmpty(&g_losFreeTask)) {
SCHEDULER_UNLOCK(intSave);
PRINT_ERR("No idle TCB in the system!\n");
#ifdef LOSCFG_DEBUG_VERSION
(VOID)OsShellCmdTskInfoGet(OS_ALL_TASK_MASK, NULL, OS_PROCESS_INFO_ALL);
#endif
return NULL;
}