Commit Graph

170 Commits

Author SHA1 Message Date
mucor 6ba93994cb remove redundant page free
Change-Id: I5ca037ef20eb65578b804e314617953bfbf6c35b
2021-04-08 20:17:11 +08:00
arvinzzz 9fc6241057 Description: Fix the problem that the actual implementation of the function does not match the description.
Change-Id: Icdbc0182efc023734ccbe7e80b1926d64a18d01c
2021-04-06 22:35:13 +08:00
openharmony_ci a2e59ba316 !117 【轻量级 PR】:update kernel/base/core/los_process.c.
Merge pull request !117 from 冷钦街/N/A
2021-04-06 12:31:29 +08:00
x_xiny a041342a69 signal
Change-Id: Ia42e914b7a19b7d519010e371f808baa1c6588c0
2021-04-02 18:27:31 +08:00
冷钦街 3194fcca08 update kernel/base/core/los_process.c. 2021-04-02 15:56:30 +08:00
openharmony_ci be5e5fdf42 !112 修复代码段及只读段在uncache映射区域可以篡改的漏洞
Merge pull request !112 from JerryH/mmu
2021-04-01 09:51:59 +08:00
openharmony_ci b1655de5ab !111 调度中存在有符号数与无符号数比较
Merge pull request !111 from zhushengle/sched
2021-04-01 09:02:59 +08:00
YOUR_NAME c959d43684 IssueNo:#I3E0F2
Description:Delete VM to support only kernel mode.
Sig:liteos_a
Feature or Bugfix:Feature
Binary Source:No

Change-Id: Ie1029c8fbc0c1b85c138663933118d2d148b7769
2021-03-31 16:14:54 +08:00
zhushengle 36032f117a IssueNo:#12345
Description:Scheduling module has signed number and unsigned number comparison.
Sig:kernel
Feature or Bugfix:Bugfix
Binary Source:No

Change-Id: Ie6385e5ab779b6b542282198b38c966871b03c8e
2021-03-31 15:08:08 +08:00
laokz 349c1e46de QEMU arm platform: get 'bootargs' from flash; fix code style
Change-Id: I94175fa89a61f4f08d9f921203bedfc2dd9e53e4
2021-03-30 23:07:22 +08:00
openharmony_ci d3e78a2cac !101 【轻量级 PR】:Fixed Grammar Issues In VM_ERR
Merge pull request !101 from Ho Hang/N/A
2021-03-30 10:35:00 +08:00
Ho Hang b9683cf2c8 update kernel/user/src/los_user_init.c. 2021-03-29 13:15:03 +08:00
openharmony_ci 7387d410bf !100 解决kernel/liteos_a仓下关闭fat,编译不过的问题
Merge pull request !100 from li_zan/master
2021-03-29 12:06:31 +08:00
Ho Hang ea9791f8e1 Fixed Grammar Issues In VM_ERR 2021-03-29 11:56:26 +08:00
li_zan 2e47684d15 change config for fs2 2021-03-29 10:19:58 +08:00
openharmony_ci 23c2c270b8 !98 内核支持syscall关闭
Merge pull request !98 from zhangfanfan2/master
2021-03-27 09:58:48 +08:00
YOUR_NAME b1be50cdb9 [Desc] Support to close syscall.
Change-Id: I6f7c469e96da9cc89c5c33bf7a9afe19625e175f
2021-03-26 20:12:50 +08:00
li_zan b75c5f3cca change config for fs 2021-03-26 19:36:58 +08:00
li_zan 195172e655 change config for fs 2021-03-26 17:00:15 +08:00
openharmony_ci 51e587ca44 !59 【轻量级 PR】:update kernel/base/ipc/los_futex.c.
Merge pull request !59 from 冷钦街/N/A
2021-03-25 11:29:52 +08:00
openharmony_ci da15b665b1 !86 remove unused code
Merge pull request !86 from Denny/new
2021-03-25 11:20:33 +08:00
zhushengle 9601ecc131 IssueNo:#I29BRN
Description:Change the exception error message to Panic to clarify what normal does not return.
Sig:kernel
Feature or Bugfix:Bugfix
Binary Source:No

Change-Id: Ie7087cafe709f79604831f6d3eefcee6fe48ccbb
2021-03-24 16:36:12 +08:00
openharmony_ci 996047a7e2 !82 轻内核VFS层重构,添加路径缓存
Merge pull request !82 from 野生毛霉君/noEmployeeNum_ChangeID_13306388_wangchenyang
2021-03-23 14:45:14 +08:00
denny 6af9d2ff16 remove unuse code
Change-Id: I608a6e18aad240c52398d744191f6df4bdd68cb5
2021-03-23 10:35:23 +08:00
openharmony_ci 8ac55beb4e !70 【轻量级 PR】:update kernel/base/vm/los_vm_filemap.c.
Merge pull request !70 from 冷钦街/N/A
2021-03-22 21:04:50 +08:00
wangchenyang d970750808 Description:vfs refactoring
Feature or Bugfix:Feature
Binary Source:Huawei
PrivateCode(Yes/No):Yes

Change-Id: I175d2648bc6f9078c34de2c0a5c93fda10b86c47
ChangeID:13306388
2021-03-19 13:22:46 +08:00
Haryslee c29806a316 Optimization for physics memory
Change-Id: Id7765f13d15014c8b19b75156b9f5971cbe99705
2021-03-13 17:37:10 +08:00
mamingshuai 73a7b66116 update openharmony 1.0.1 2021-03-11 18:43:57 +08:00
冷钦街 3fe1a89b49 update kernel/base/vm/los_vm_filemap.c. 2021-02-18 16:41:29 +08:00
openharmony_ci e351799d39 !52 【轻量级 PR】:update kernel/extended/liteipc/hm_liteipc.c. 修改一个不不合理的英文用词
Merge pull request !52 from Harmonica/N/A
2021-02-18 10:00:36 +08:00
laokz 9404c9971d add QEMU arm 'virt' CFI flash support, enable rootfs and user-space app 2021-02-05 23:10:05 +08:00
冷钦街 82d6fe991c update kernel/base/vm/los_vm_phys.c. 2021-02-03 15:43:39 +08:00
冷钦街 91e4e73dab update kernel/base/ipc/los_futex.c. 2021-01-15 07:13:07 +08:00
zhangfanfan2 98b1ae1ae6 删除LOS_TaskDelete中用于调试的主动异常信息以及修复LOS_DoMremap中调用LOS_ArchMmuMove参数错误问题 2021-01-13 14:42:32 +08:00
zhOu 0a40c5434b 修复dev 文件夹mmap bug 2021-01-07 15:38:37 +08:00
Zbigniew Bodek fab70c738d Remove redundant extern SystemInit
Signed-off-by: Zbigniew Bodek <zbigniew.bodek@huawei.com>
Change-Id: I3c93fd703eb184d946f25a7f6be3c70124b469c1
2020-12-31 19:28:58 +08:00
openharmony_ci 58da2cb0c2 !33 OpenHarmony LiteOS-A QEMU support
Merge pull request !33 from WojciechZmuda/qemu-arm-dev
2020-12-31 18:21:58 +08:00
Zbigniew Bodek 07c89a8473 Fix IS_PERIPH_ADDR() and IS_MEMORY_ADDR() macros
The macros assume that constants that are compared against
"addr" are either unsigned or less than INT_MAX.
In some cases it is not true so change costants to unsigned
using U32_C macros.
The correct solution would be to change teh MEM_ADDR, PMM_BASE, etc.
to be unsigned long but currently "U" suffix is appended in various
places so the assumption is that those macros use default definition
(which is int).

Put "addr" into brackets by the way since it could be an expression
rather than one variable.

Signed-off-by: Zbigniew Bodek <zbigniew.bodek@huawei.com>
Change-Id: Ife9bc5863b4934ecaab64b24faa084b87d7d7ea5
2020-12-31 00:54:33 +08:00
Zbigniew Bodek 994ad00de7 Change DEFINE macro to U32_C
The macro to append "U" suffix should be named
according to what it actually does which is defining U32 constant.

Signed-off-by: Zbigniew Bodek <zbigniew.bodek@huawei.com>
Change-Id: I55701f0650c88bd083c062581af5c7a1b966bc0b
2020-12-31 00:53:09 +08:00
Harmonica 5dabe5e1ee update kernel/extended/liteipc/hm_liteipc.c. 修改一个不不合理的英文用词 2020-12-28 15:50:18 +08:00
likailong 3dd32b9901 Description: add protect flag to resource task
Reviewed-by: shenwei and zhangfanfan
2020-12-26 10:43:04 +08:00
openharmony_ci 05e11d4034 !50 [Lightweight PR]: 解决系统异常时,由于console打印问题,导致系统异常信息不能输出的问题。
Merge pull request !50 from zhangfanfan2/N/A
2020-12-25 11:08:55 +08:00
zhangfanfan2 3b883d3828 解决系统异常时,由于console打印问题,导致系统异常信息不能输出的问题。 2020-12-25 10:10:40 +08:00
zhangfanfan2 5ed6f6598e No idle PCB debug 2020-12-25 09:59:11 +08:00
openharmony_ci b5571e02e4 !46 【轻量级 PR】:No idle PCB debug
Merge pull request !46 from zhangfanfan2/N/A
2020-12-24 15:37:11 +08:00
zhangfanfan2 b64e399c10 No idle TCB debug 2020-12-24 14:22:28 +08:00
zhangfanfan2 0c635d79e6 No idle PCB debug 2020-12-24 14:20:50 +08:00
likailong e10c9af86f Description: fix mutex unlock error
Reviewed-by: zhangfanfan
2020-12-23 16:34:37 +08:00
openharmony_ci c69eee403e !39 修正OsSigTimedWaitNoLock只清除一个pending信号
Merge pull request !39 from laokz/signal
2020-12-09 14:08:36 +08:00
laokz a706de2fad fix hilog, vm_syscall etc. typos 2020-12-08 18:00:32 +08:00
laokz 4ea33fa9f9 修正OsSigTimedWaitNoLock只清除一个pending信号 2020-12-05 17:38:05 +08:00
laokz bd9b180b27 修复SYSV shm函数:OsShmRegionFree物理页解映射、共享段删除条件,ShmGet操作标志检查,ShmatVmmAlloc对已存在映射的处理。 2020-12-01 18:59:22 +08:00
laokz 86194762a1 修正liteipc两处typos 2020-11-30 15:30:06 +08:00
laokz c2b31e9628 修改region相关:优化OsVmRegionSplit红黑树节点操作,修改OsVmRegionAdjust起始地址不在region时的行为,修复OsIsRegionCanExpand计算错误,更正几处typos 2020-11-27 20:49:06 +08:00
Zbigniew Bodek cef02d9340 Add stub for fetching bootargs for Qemu ARM virt
Currently unused but when rootfs is enabled
we should get this error and quickly narrow down
where to add proper bootargs handling.

Signed-off-by: Zbigniew Bodek <zbigniew.bodek@huawei.com>
Change-Id: Ie8d96fc3b6ad7cc33abe67530ca8ff9526b46855
2020-11-17 23:07:01 +08:00
Zbigniew Bodek e559c86d77 Workaround missing machine_resource_init in BSD initialization
BSD compatibility is not optional for the kernel to build, however
platform dependent portion of this configuration, machine_resource_init(),
which is called by nexus_init() is implemented only in the platform
specific library for HiSilicon chips (libhi35xx_bsp.a).
Workaround lack of this library, so that the kernel can be built
for other platforms as well, by excluding it from the compilation.

This change should be removed as soon as the appropriate function
is implemented for other platforms.

Signed-off-by: Zbigniew Bodek <zbigniew.bodek@huawei.com>
Change-Id: I66f15b167b9769f17820f5f0edb7ae8b0ebc9246
2020-11-17 23:07:01 +08:00
Zbigniew Bodek 850a566916 Workaround linking problem caused by missing SystemInit during build
During LiteOS consolidation, system_init.o object that contains
SystemInit() doesn't exist yet as it is being built later
and linked in ./vendor directory when OHOS_Image is created.
This is not the case when building for HiSilicon platforms as
SystemInit is provided for them in precompiled libraries.

Workaround this issue by creating "weak" function in LiteOS
that will be replaced by the "strong" symbol from ./vendor
in linking phase of the OHOS_Image.

Signed-off-by: Zbigniew Bodek <zbigniew.bodek@huawei.com>
Change-Id: I39f327a350722a3e41a370ee93ba3b734c5681b0
2020-11-17 23:07:01 +08:00
Zbigniew Bodek aff8a3e3c1 Fix build when KERNEL_DYNLOAD is disabled
Fix unused function warning treated as error
when KERNEL_DYNLOAD option is switched off.

Signed-off-by: Zbigniew Bodek <zbigniew.bodek@huawei.com>
Change-Id: I21a01ff3d7ecb7b2e65bacbaa985c6390f5e4be7
2020-11-17 23:07:01 +08:00
Zbigniew Bodek 22f0e9ac30 Fix build when HILOG is disabled
Fix build when BASE_CORE_HILOG option is disabled.
Use similar printing function to output missing HILOG
logs.

Signed-off-by: Zbigniew Bodek <zbigniew.bodek@huawei.com>
Change-Id: Id5c63568ccb1ba90daadddf7e26d3e0f6c9f30ce
2020-11-17 23:07:01 +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
zhangfanfan2 02788cedc0 内存泄漏、访问野指针以及竞态问题修复。 2020-11-03 11:20:09 +08:00
laokz 3883ccb0a0 修复LOS_BitmapSetNBits误将位数当作位模式的错误 2020-10-17 23:25:24 +08:00
Caoruihong 63bd69267a drop unnecessary executable file permission mode
Change-Id: Ia6c1f6302407a707b3ec9b805f4c92d8a7970b86
2020-10-13 16:37:25 +08:00
zhushengle 12b81567df 修改PCB中错误的注释,并统一注释格式 2020-09-28 21:47:42 +08:00
Harylee f62115dfef Fix mmap 2020-09-28 16:32:18 +08:00
zhushengle a73348da8d modify the indentation 2020-09-28 14:35:53 +08:00
zhushengle c884ada07d Solve the static problem of user mode locking under high concurrency. 2020-09-28 14:12:46 +08:00
Caoruihong 4929816604 !9 【轻量级 PR】:#I1VDS2 fix typo
Merge pull request !9 from Caoruihong/N/A
2020-09-17 10:08:49 +08:00
jiamuluo 7d76e5f791 !8 OsCreateIdleProcess 中判断错误
Merge pull request !8 from jiamuluo/master
2020-09-15 11:49:41 +08:00
wenjun 6df931fc98 add OpenHarmony 1.0 baseline 2020-09-08 17:22:24 +08:00