同步官方最新代码

    百图画鸿蒙 + 百文说内核 + 百万注源码  => 挖透鸿蒙内核源码
    鸿蒙研究站 | http://weharmonyos.com (国内)
              | https://weharmony.github.io (国外)
    oschina | https://my.oschina.net/weharmony
    博客园 | https://www.cnblogs.com/weharmony/
    知乎 | https://www.zhihu.com/people/weharmonyos
    csdn | https://blog.csdn.net/kuangyufei
    51cto | https://harmonyos.51cto.com/column/34
    掘金 | https://juejin.cn/user/756888642000808
    公众号 | 鸿蒙研究站 (weharmonyos)
上级 8e601a00
......@@ -50,7 +50,7 @@ config COMPILER_CLANG_LLVM
config LLVM_TARGET
string "Clang LLVM target"
depends on COMPILER_CLANG_LLVM
default "arm-liteos" if ARCH_ARM_AARCH32
default "arm-liteos-ohos" if ARCH_ARM_AARCH32
endchoice
......
......@@ -150,7 +150,7 @@
### 四大码仓发布 | 源码同步官方
内核注解同时在 [gitee](https://gitee.com/weharmony/kernel_liteos_a_note) | [github](https://github.com/kuangyufei/kernel_liteos_a_note) | [coding](https://weharmony.coding.net/public/harmony/kernel_liteos_a_note/git/files) | [codechina](https://codechina.csdn.net/kuangyufei/kernel_liteos_a_note) 发布,并与官方源码按月保持同步,同步历史如下:
* `2022/01/03` -- 只有很少的几处修改同步
* `2022/01/10` -- 只有很少的几处修改同步
* `2021/12/20` -- 增加`LMS`模块,完善`PM,Fat Cache`
* `2021/11/12` -- 加入`epoll`支持,对`shell`模块有较大调整,微调`process``task`,更正单词拼写错误
* `2021/10/21` -- 增加性能优化模块`perf`,优化了文件映射模块
......
......@@ -364,11 +364,13 @@ void ChildExec(const char *cmdName, char *const paramArray[])
gid = getpgrp();
if (gid < 0) {
printf("get group id failed, pgrpid %d, errno %d\n", gid, errno);
exit(1);
}
ret = tcsetpgrp(STDIN_FILENO, gid);
if (ret != 0) {
printf("tcsetpgrp failed, errno %d\n", errno);
exit(1);
}
ret = execve(cmdName, paramArray, NULL);
......
......@@ -40,7 +40,6 @@
#include "los_process_pri.h"
#include "los_hw.h"
static struct rlimit g_defaultLimit = { 0 };
/*
* Supply some suitable values for constants that may not be present
* in all configurations.
......@@ -168,7 +167,10 @@ int getrlimit(int resource, struct rlimit *rlim)
}
if (resourceLimit == NULL) {
resourceLimit = &g_defaultLimit;
rlim->rlim_cur = 0;
rlim->rlim_max = 0;
return 0;
}
SCHEDULER_LOCK(intSave);
......
......@@ -347,7 +347,7 @@ INT FatFsBindVirPart(void *handle, BYTE vol)
return -EINVAL;
}
ret = snprintf_s(path, sizeof(path), sizeof(path) - 1, "%d:/", vol);
ret = snprintf_s(path, sizeof(path), sizeof(path) - 1, "%u:/", vol);
if (ret < 0) {
return -EINVAL;
}
......@@ -420,7 +420,7 @@ INT FatFsMakeVirPart(void *handle, BYTE vol)
return -EINVAL;
}
ret = snprintf_s(path, sizeof(path), sizeof(path) - 1, "%d:/", vol);
ret = snprintf_s(path, sizeof(path), sizeof(path) - 1, "%u:/", vol);
if (ret < 0) {
return -EINVAL;
}
......
......@@ -775,7 +775,7 @@ BOOL OsSchedModifyProcessSchedParam(LosProcessCB *processCB, UINT16 policy, UINT
return needSched;
}
//冻结任务
STATIC VOID OsSchedFreezeTask(LosTaskCB *taskCB)
{
UINT64 responseTime;
......@@ -794,7 +794,7 @@ STATIC VOID OsSchedFreezeTask(LosTaskCB *taskCB)
taskCB->taskStatus |= OS_TASK_FLAG_FREEZE;
return;
}
//解冻任务
STATIC VOID OsSchedUnfreezeTask(LosTaskCB *taskCB)
{
UINT64 currTime, responseTime;
......
......@@ -319,7 +319,7 @@ static INT32 HiDumperIoctl(struct file *filep, INT32 cmd, unsigned long arg)
break;
case HIDUMPER_MEM_DATA:
if (g_adapter.DumpMemData != NULL) {
g_adapter.DumpMemData((struct MemDumpParam *)arg);
g_adapter.DumpMemData((struct MemDumpParam *)((UINTPTR)arg));
}
break;
default:
......
......@@ -2697,7 +2697,7 @@ int SysPselect6(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds,
((struct timeval *)timeout)->tv_usec = timeout->tv_nsec / 1000; /* 1000, convert ns to us */
if (data != NULL) {
retVal = LOS_ArchCopyFromUser(&(setl.sig[0]), (int *)data[0], sizeof(sigset_t));
retVal = LOS_ArchCopyFromUser(&(setl.sig[0]), (int *)((UINTPTR)data[0]), sizeof(sigset_t));
if (retVal != 0) {
ret = -EFAULT;
FREE_DUP(timeout);
......
git add -A
git commit -m ' 完善几处任务状态注释
git commit -m ' 同步官方最新代码
百图画鸿蒙 + 百文说内核 + 百万注源码 => 挖透鸿蒙内核源码
鸿蒙研究站 | http://weharmonyos.com (国内)
| https://weharmony.github.io (国外)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册