From b64e399c10ad11005ee2aba080d7e881ac586450 Mon Sep 17 00:00:00 2001 From: zhangfanfan2 Date: Thu, 24 Dec 2020 14:22:28 +0800 Subject: [PATCH] No idle TCB debug --- kernel/base/core/los_task.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/base/core/los_task.c b/kernel/base/core/los_task.c index 36e8d857..b000f959 100644 --- a/kernel/base/core/los_task.c +++ b/kernel/base/core/los_task.c @@ -766,6 +766,7 @@ LITE_OS_SEC_TEXT LosTaskCB *OsGetFreeTaskCB(VOID) if (LOS_ListEmpty(&g_losFreeTask)) { SCHEDULER_UNLOCK(intSave); PRINT_ERR("No idle TCB in the system!\n"); + LOS_Panic("**************error***************\n"); return NULL; } -- GitLab