提交 36462bcd 编写于 作者: O openharmony_ci 提交者: Gitee

!305 内核态在console初始化完成后,使用printf无法正常打印

Merge pull request !305 from zhangfanfan2/master
......@@ -853,11 +853,10 @@ STATIC INT32 ConsoleGetWinSize(unsigned long arg)
.ws_row = DEFAULT_WINDOW_SIZE_ROW
};
if(LOS_ArchCopyToUser((VOID *)arg, &kws, sizeof(struct winsize)) != 0) {
if (LOS_CopyFromKernel((VOID *)arg, sizeof(struct winsize), &kws, sizeof(struct winsize)) != 0) {
return -EFAULT;
} else {
return LOS_OK;
}
return LOS_OK;
}
STATIC INT32 ConsoleGetTermios(unsigned long arg)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册