提交 5b44332c 编写于 作者: O openharmony_ci 提交者: Gitee

!642 解决release1.0.1分支内核关闭中断后在写BUFF满了后卡住问题

Merge pull request !642 from wanghao-free/OpenHarmony_1.0.1_release
...@@ -98,7 +98,7 @@ STATIC VOID ConsoleOutput(const CHAR *str, UINT32 len) ...@@ -98,7 +98,7 @@ STATIC VOID ConsoleOutput(const CHAR *str, UINT32 len)
for (;;) { for (;;) {
cnt = write(STDOUT_FILENO, str + writen, (size_t)toWrite); cnt = write(STDOUT_FILENO, str + writen, (size_t)toWrite);
if ((cnt < 0) || (toWrite == cnt)) { if ((cnt < 0) || ((cnt == 0) && OS_INT_ACTIVE) || (toWrite == cnt)) {
break; break;
} }
writen += cnt; writen += cnt;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册