提交 05e11d40 编写于 作者: O openharmony_ci 提交者: Gitee

!50 [Lightweight PR]: 解决系统异常时,由于console打印问题,导致系统异常信息不能输出的问题。

Merge pull request !50 from zhangfanfan2/N/A
......@@ -1626,6 +1626,7 @@ VOID OsWaitConsoleSendTaskPend(UINT32 taskID)
UINT32 i;
CONSOLE_CB *console = NULL;
LosTaskCB *taskCB = NULL;
INT32 waitTime = 30000; /* 30000: 30 seconds*/
for (i = 0; i < CONSOLE_NUM; i++) {
console = g_console[i];
......@@ -1638,8 +1639,9 @@ VOID OsWaitConsoleSendTaskPend(UINT32 taskID)
}
taskCB = OS_TCB_FROM_TID(console->sendTaskID);
while ((taskCB->taskEvent == NULL) && (taskID != console->sendTaskID)) {
while ((waitTime > 0) && (taskCB->taskEvent == NULL) && (taskID != console->sendTaskID)) {
LOS_Mdelay(1); /* 1: wait console task pend */
--waitTime;
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册