No idle TCB debug

This commit is contained in:
zhangfanfan2 2020-12-24 14:22:28 +08:00 committed by Gitee
parent 58830073a6
commit b64e399c10
1 changed files with 1 additions and 0 deletions

View File

@ -766,6 +766,7 @@ LITE_OS_SEC_TEXT LosTaskCB *OsGetFreeTaskCB(VOID)
if (LOS_ListEmpty(&g_losFreeTask)) { if (LOS_ListEmpty(&g_losFreeTask)) {
SCHEDULER_UNLOCK(intSave); SCHEDULER_UNLOCK(intSave);
PRINT_ERR("No idle TCB in the system!\n"); PRINT_ERR("No idle TCB in the system!\n");
LOS_Panic("**************error***************\n");
return NULL; return NULL;
} }