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

Merge pull request !305 from zhangfanfan2/master
This commit is contained in:
openharmony_ci 2021-06-09 13:46:19 +08:00 committed by Gitee
commit 36462bcd7e
1 changed files with 2 additions and 3 deletions

View File

@ -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)