pef
9b07aece2d
fix: 修复dispatch单词拼写错误。
...
【背景】
打印有错误单词的提示语
[ERR] Dsipatch signals failed!, ret: 22
这里单词应该是 dispatch 。
【修改方案】
1. 将Dsipatch改为Dispatch。
【影响】
对现有的产品编译不会有影响。
re #I4BLE8
Change-Id: I26d4336d6d7f7bfc4811819be0a1e8ba9d7d50a8
Signed-off-by: pef <cyd1997@126.com>
2021-09-24 03:45:08 +00:00
arvinzzz
b3d96d166c
refactor: 清理Makefile冗余项
...
清理Makefile冗余项,各模块Makefile里不需要再次引用公共路径,只需引用私有头文件路径
close: #I49MOO
Signed-off-by: arvinzzz <zhaotianyu9@huawei.com>
Change-Id: I2dd7189c866498896461f78bfed5444ae1d86876
2021-09-13 18:14:15 +08:00
arvinzzz
33d0c1bd0b
refactor: 内核目录结构整理
...
1. 原kernel/common目录下属于内核拓展组件,统一移入kernel/extend管理
2. Kconfig分层,各模块自己的配置放到自己目录下管理
3. 原platform下不属于平台的公共代码抽到kernel/common下,只留板级链接脚本和一些编译脚本指向device目录下触发平台相关的编译
4. 对外公共头文件统一抽到对外include路径
5. 废弃宏,头文件清理
close: #I48KI4
Signed-off-by: arvinzzz <zhaotianyu9@huawei.com>
Change-Id: I0cf5ea81c92a8fa7b113da9cbdc8b7bc935f5aae
2021-09-08 16:36:28 +08:00
Caoruihong
9549f5ebd0
chore(musl): reduce the modifications of musl
...
Signed-off-by: Caoruihong <crh.cao@huawei.com>
Change-Id: I32b820bc0eb7465bf54d506e7f5e759ef64101e2
2021-08-19 16:07:12 +08:00
openharmony_ci
339e937a6a
!495 修复mqueue问题
...
Merge pull request !495 from lnlan/fix_mqueue_0803
2021-08-13 07:40:11 +00:00
openharmony_ci
da43449939
!536 修复最小化liteos_a编译问题
...
Merge pull request !536 from Caoruihong/liteos_a_mini
2021-08-11 09:34:04 +00:00
Caoruihong
e13cb3bcc4
fix(mini): fix compile error in mini liteos_a
...
Signed-off-by: Caoruihong <crh.cao@huawei.com>
Change-Id: I9ab63796e5d47ac44d24807f1ebd0bbfe46681bf
2021-08-10 23:59:34 +08:00
openharmony_ci
51da89a3fb
!532 fix: 修改DoNanoSleep 以纳秒为单位
...
Merge pull request !532 from zhushengle/sleep
2021-08-10 11:37:44 +00:00
lnlan
26ee8b836e
fix: 修复mqueue问题
...
【背景】
1.mqueue用例关于NFILE错误码压力测试中,不符合预期结果
2.mq_unlink对于fork出的mqueue不起效
3.已打开的mqueue,在fork后两进程共用一份mqpersonal不合理
【修改方案】
1. 确认是内核关于mqueue的fd_set定义位置不合理导致的,
将fd_set定义位置由mqarray结构体调未全局变量后,问题解决
2.不合理的unlink_ref++导致的,去除相关操作,使用mq_personal
链表判断何时需要删除
3.fork时内核复制一份mqpersonal
【影响】
对现有的产品编译不会有影响。
re #I43P4T
Signed-off-by: lanleinan <lanleinan@163.com>
Change-Id: I09f183cc3a88e5a65201dbc1fc4f4806f78971be
2021-08-10 07:55:13 +00:00
zhushengle
6917e08431
fix: 修改DoNanoSleep 以纳秒为单位
...
DoNanoSleep 接口以微秒为单位,纳秒级别的在转换成微秒时被整除为0,
导致转换成tick时为0,导致延时时触发yield,导致延时时间超大
Close #I3Z9DP
Signed-off-by: zhushengle <zhushengle@huawei.com>
Change-Id: Ib662fdc80707be6040b2bb06a1b457344bd48b30
2021-08-10 11:25:49 +08:00
vcbchang
a6c02e29c1
fix:修复在使用GetCputime时由clockid计算pid或tid时出现的错误
...
【背景】原来代码在计算由clockid计算pid或tid时用的是移位的方式,由于对于有符号和无符号数结果可能不一致,故这里对计算方法做了修改,修改为计算clockid的逆运算。
【修改方案】
计算pid或tid为计算clockid的逆运算
re #I4249G
Signed-off-by: vcbchang <vcbchang@qq.com>
Change-Id: I2952232ec7d8fc2d0c47163b00d0c772648a2bf8
2021-08-03 20:16:29 +08:00
openharmony_ci
88358ab302
!480 A核代码告警清零
...
Merge pull request !480 from wangchen/a_codex
2021-07-31 03:41:03 +00:00
openharmony_ci
1e5d01360b
!394 fix apis: setrlimit,gethostname,gethostid
...
Merge pull request !394 from wcc/misc
2021-07-31 03:17:22 +00:00
openharmony_ci
a7a25bb0a3
!382 fix mq by enable mq_notify API
...
Merge pull request !382 from guweijie/master
2021-07-31 03:08:14 +00:00
wangchen
698756d1e6
fix: A核代码告警清零
...
【背景】定期A核代码告警清零。
【修改方案】
根据工具扫描结果,对代码告警进行更改。
【影响】
对现有的产品编译不会有影响。
re #I4378T
Signed-off-by: wangchen <253227059@qq.com>
2021-07-30 17:13:55 +08:00
wcc
09d5bcc22d
Merge branch 'master' of gitee.com:openharmony/kernel_liteos_a into misc
2021-07-27 01:40:59 +00:00
openharmony_ci
0dc79479ff
!436 toybox升级_内核依赖
...
Merge pull request !436 from wangchen/toybox
2021-07-23 11:21:45 +00:00
teamol
4427142d73
fix: fix mq function by enable mq_notify api
...
1.modifications:
modified: compat/posix/include/mqueue.h
modified: compat/posix/src/mqueue.c
modified: syscall/ipc_syscall.c
modified: syscall/los_syscall.h
modified: syscall/syscall_lookup.h
modified: testsuites/unittest/posix/mqueue/posix_mqueue_test.cpp
2.add 5 testcases:
It_posix_queue_205.cpp
It_posix_queue_206.cpp
It_posix_queue_207.cpp
It_posix_queue_208.cpp
It_posix_queue_209.cpp
3.influence:
none
Signed-off-by: teamol <28105285@qq.com>
2021-07-23 16:52:21 +08:00
Caoruihong
a8805a65aa
feat: add support for gn build system
...
add BUILD.gn for all kernel modules
Signed-off-by: Caoruihong <crh.cao@huawei.com>
Change-Id: I018446427bf64615f2596d47862b219659b58b34
2021-07-21 15:52:40 +08:00
wangchen
2ff44c4938
fix: L1 toybox 命令功能实现
...
【背景】
解决toybox已支持命令的遗留问题,新增命令功能。
【修改方案】
1. 在内核态对toybox的系统调用进行支持。
【影响】
对现有的产品编译不会有影响。
re #I41N2A
Signed-off-by: wangchen <253227059@qq.com>
2021-07-20 20:56:35 +08:00
wcc0
c9d69e2d1b
fix: add capability and amend smoke testcase
...
add setrlimit,gethostname,gethostid and capability
Change-Id: I0d5f23cb87ec2731fb79e7c5cfbe1ce109ac158a
2021-07-16 09:24:44 +08:00
openharmony_ci
d7387508e3
!402 消除编译告警
...
Merge pull request !402 from x_xiny/master
2021-07-09 08:37:20 +00:00
x_xiny
e4ff04586f
fix:消除编译告警
...
【背景】
消除编译告警
【修改方案】
消除编译告警
re #I3ZC1R
Change-Id: I594d0f57e4cbbdb246a6bef1c978a38228123a34
Signed-off-by: x-xiny <1301913191@qq.com>
Change-Id: I1d75cdcdcf9d06ec28e541cdfea77300da7c6bb1
2021-07-08 20:30:33 +08:00
boxi
4e4f2d6d7e
refactor: 对LiteOS_a内核中menuconfig开关的宏使用#ifdef/#ifndef做预编译处理
...
LiteOS_a中有部分配置宏进行了重复冗余定义,导致当头文件未被包含时,极易引入错误,
故对menuconfig配置宏进行统一处理,均使用#ifdef/#ifndef作为预编译判断方式
Close #I3YEGS
Change-Id: Ife6db770cc66de1d6199a4f3ba3950e9bfd0e71a
Signed-off-by: boxi <lewis.liulei@huawei.com>
2021-07-01 09:08:18 +08:00
openharmony_ci
36e5124c0a
!322 文件系统冗余代码和依赖删除
...
Merge pull request !322 from 野生毛霉君/master
2021-06-19 20:40:14 +08:00
mucor
73a777777e
fix: remove redundant headfile
...
1.remove redundant headfile in kernel, such as:
compiler.h;debug.h;automount.h;inode.h;syslog.h;net.h;
2.split fs.h to file.h and driver.h
3.move vnode.h and path_cache.h to vfs/include
4.remove redundant interface and defines
close: #I3RTNR
Signed-off-by: mucor <mucorwang@gmail.com>
2021-06-19 17:32:47 +08:00
openharmony_ci
5f970888ef
!328 fix:修改clock_gettime接口适配posix标准测试用例011输入clk_id错误时返回值ESRCH为EINVAL.
...
Merge pull request !328 from guweijie/master
2021-06-18 14:26:29 +08:00
teamol
f8cf6e6439
fix: 修改clock_gettime接口适配posix标准测试用例011输入clk_id错误时返回值ESRCH为EINVAL.
...
1.修改:
compat/posix/src/time.c文件中clock_gettime接口ESRCH返回值为EINVAL.
2.影响:
无.
fix #I3OUHI
Signed-off-by: teamol <28105285@qq.com>
2021-06-18 10:42:23 +08:00
Kenneth
81f3d59717
chore: fix typos
...
fix typo destroy
close https://gitee.com/openharmony/kernel_liteos_a/issues/I3RR17
Signed-off-by: Kenneth <459864689@qq.com>
2021-06-16 14:52:06 +08:00
openharmony_ci
647f3defcd
!296 支持最小化特性编译,添加了一个针对qemu arm virt的样例config配置
...
Merge pull request !296 from Caoruihong/master
2021-06-07 22:51:46 +08:00
Caoruihong
744b2021b2
chore: add a mini config for qemu arm virt
...
support turn off as many features as possible.
current only libc and posix and bsd can not be turned off.
Signed-off-by: Caoruihong <crh.cao@huawei.com>
Change-Id: I1e97570c67593207a56dc11f357eca4b4a018bfd
2021-06-05 17:40:22 +08:00
Kiita
e5f6bf0556
feat: timer_create支持以SIGEV_THREAD方式创建定时器
...
【背景】当前timer_create接口不支持以SIGEV_THREAD的方式创建多个定时器
【修改方案】
1、内核timer_create接口在创建software timers相应的线程时,使用线程
taskCB所携带的信息识别各个线程的信号并依据该信息分别派发出信号。
2、关于用户任务操作许可验证的修改,现在允许同一用户线程向其自身派发信
号,软件定时器计时结束,向用户态发送相应的信号,完成用户态线程的回调。
【影响】
对现有的产品暂无影响。
re #I3SRFI
Signed-off-by: yansira <yansira@hotmail.com>
Change-Id: Ia23f5ef01975bf867dd7f5db797a30c264c50501
2021-06-04 15:29:44 +08:00
arvinzzz
8cde768588
refactor: Refactored the kernel boot process and added a init framework
...
close: #I3I768
Change-Id: I4f801df4abe1a9afdf43391c28276e96a5e81513
2021-05-20 16:45:43 +08:00
openharmony_ci
6f99abfc7b
!222 fix: correct spelling
...
Merge pull request !222 from rtos-lover/los_task
2021-05-19 13:46:10 +08:00
openharmony_ci
e1d427f8c8
!245 删除无效代码
...
Merge pull request !245 from Zhaotianyu/0517
2021-05-19 10:33:49 +08:00
guweijie
2534c86d6f
Merge branch 'master' of gitee.com:openharmony/kernel_liteos_a into master
2021-05-18 09:56:42 +08:00
teamol
e8427a45c5
fix time mould-kernel:fix 2 api clock_gettime、clock_getres
...
Change-Id: I260e47c895ced01e033ef8a824744e574887c9f5
2021-05-18 09:51:11 +08:00
arvinzzz
fe05df40ae
fix: Remove redundant invalid codes
...
close: #I3R70T
Change-Id: Idec4ba2f692cf357368c2fa437dddeba945f2e07
2021-05-17 14:34:09 +08:00
teamol
a53ad12907
fix time mould by ChinaSoft Team
...
Change-Id: I391eccfa8591feb95dcb5b74fba3788f63b981bf
2021-05-14 10:39:59 +08:00
rtos-lover
c66fe0313f
fix: correct spelling
...
correct some typos in los_task.c and other files
close https://gitee.com/openharmony/kernel_liteos_a/issues/I3QDB8
2021-05-08 11:23:08 +08:00
lnlan
89e9820189
fixed, to set errno in mq_receive and shm_get
...
Change-Id: Iecd1a896f92522ecc75d099c23761969a83b1d29
2021-04-29 19:41:15 +08:00
openharmony_ci
7ba0bfa800
!157 删除无用的__cplusplus,移除不必要的文件x权限
...
Merge pull request !157 from Caoruihong/cplusplus
2021-04-20 09:01:45 +08:00
zhushengle
8f2e4bb8c9
IssueNo:#I3H7TO
...
fix:the setitimer signals the process to be locked at a fixed time. There is a static problem.
Change-Id: I26f12289c4b13b0fd70bf0aad30507270e0ee421
2021-04-19 21:28:04 +08:00
Caoruihong
7e73c929a2
remove __cplusplus guards in .c files
...
Change-Id: I052d930d54e63179b17b77f02c107a015f3cfc3f
2021-04-19 18:28:25 +08:00
Caoruihong
1ea9610ffd
code optimization
...
Change-Id: I8d2e9f96e86f4130474da9898791240b5d42328e
2021-04-19 15:24:00 +08:00
zhushengle
7256d67a1c
IssueNo:#!3456
...
Description:修复setitimer多核静态问题
Sig:kernel
Feature or Bugfix:Bugfix
Binary Source:No
Change-Id: I43661908d0d5248f70acb16ea95dc76fcdb6a84e
2021-03-30 17:34:23 +08:00
mamingshuai
73a7b66116
update openharmony 1.0.1
2021-03-11 18:43:57 +08:00
zhushengle
4ff3c4bf79
Description:Process security function rectification.
...
Reviewed-by:liulei, lihao, likailong
Change-Id: Ibacdda2ccbbc991ac9732f2ad09bdb98195203b3
2020-11-05 09:10:14 +08:00
Caoruihong
63bd69267a
drop unnecessary executable file permission mode
...
Change-Id: Ia6c1f6302407a707b3ec9b805f4c92d8a7970b86
2020-10-13 16:37:25 +08:00
wenjun
6df931fc98
add OpenHarmony 1.0 baseline
2020-09-08 17:22:24 +08:00