Commit Graph

321 Commits

Author SHA1 Message Date
laokz 4ea33fa9f9 修正OsSigTimedWaitNoLock只清除一个pending信号 2020-12-05 17:38:05 +08:00
openharmony_ci f5f823ba99 !26 spelling mistakes
Merge pull request !26 from JING/N/A
2020-12-04 18:33:04 +08:00
openharmony_ci 9bc3a1cf3f !37 修复SYSV shm有关函数
Merge pull request !37 from laokz/shm
2020-12-03 14:28:18 +08:00
laokz bd9b180b27 修复SYSV shm函数:OsShmRegionFree物理页解映射、共享段删除条件,ShmGet操作标志检查,ShmatVmmAlloc对已存在映射的处理。 2020-12-01 18:59:22 +08:00
openharmony_ci 8271a069f2 !35 修正liteipc的typos
Merge pull request !35 from laokz/liteipc
2020-12-01 09:14:22 +08:00
laokz 86194762a1 修正liteipc两处typos 2020-11-30 15:30:06 +08:00
openharmony_ci cdb5d0e48a !34 修改region相关的几个问题
Merge pull request !34 from laokz/vmmap
2020-11-28 08:57:29 +08:00
laokz c2b31e9628 修改region相关:优化OsVmRegionSplit红黑树节点操作,修改OsVmRegionAdjust起始地址不在region时的行为,修复OsIsRegionCanExpand计算错误,更正几处typos 2020-11-27 20:49:06 +08:00
Zbigniew Bodek 3247d4f651 Fix build error due to "unequal" brackets
For some reason more brackets is worse than no brackets
and warning is generated that is threated as error.
Therefore remove brackets to fix the build when
LOSCFG_PLATFORM_ROOTFS is defined

Signed-off-by: Zbigniew Bodek <zbigniew.bodek@huawei.com>
Change-Id: I610a5893217039a36d894641c54a83ff4d4b7822
2020-11-17 23:07:01 +08:00
Zbigniew Bodek 5400ef180a Introduce Qemu ARM Virt CA7 platform debug configuration file
Minimal system configuration for Qemu ARM Virtual platform
based on Cortex-A7, with GICv2.

Some debugging options are enabled to allow for shell bring-up,
hence debug configuration type.

Signed-off-by: Zbigniew Bodek <zbigniew.bodek@huawei.com>
Change-Id: Ifa01cd44733fd0154044013f45772d178e19e78e
2020-11-17 23:07:01 +08:00
Zbigniew Bodek e0406e3df7 Fix various build problems when building for non-HiSi config
Mainly adding missing headers, removing redundant headers that
induce undefined symbols or rearranging existing headers
according to dependencies betheen them.
Also add missing include paths to makefiles and make configs.

Note: direct inclusion of pthread.h in disk.h is caused by the
latter being used almost everywhere, including third_party libraries.
Putting pthread.h there releases us from affecting more code.

Basically fixes build for anything that is not default HiSi
configuration.

Signed-off-by: Zbigniew Bodek <zbigniew.bodek@huawei.com>
Change-Id: Icdcb0874d9fed34d01fa282d33bd2e041c2ac436
2020-11-17 23:07:01 +08:00
Zbigniew Bodek 01cd099ea9 Create Shell task in kernel when PLATFORM_ROOTFS is disabled
If the platform doesn't support rootfs but shell and serial
console are enabled, create Shell task in kernel.
Note that normally, shell task is created by /bin/init.

Signed-off-by: Zbigniew Bodek <zbigniew.bodek@huawei.com>
Change-Id: If3bf55313d897569b59902b07eaa042eee71a8df
2020-11-17 23:07:01 +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 89fb5eb32f Fix build when NET_LWIP_SACK is disabled
Allows to disable NET_LWIP_SACK in the kernel configuration.

Signed-off-by: Zbigniew Bodek <zbigniew.bodek@huawei.com>
Change-Id: Ibcde4a811e67d61bc713d405414c4991cbc1bdd3
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 669221b620 Workaround undefined __stack_chk_guard by disabling LTO
Disable LTO to avoid undefined __stack_chk_guard symbol
problem. "externally_visible" attribute could be a fix for
that but it is not known to our LLVM.

Signed-off-by: Zbigniew Bodek <zbigniew.bodek@huawei.com>
Change-Id: I39e0ccaee5897c696a7a9a235e433cf9113853ce
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
Zbigniew Bodek 064427fcaf Allow enabling SSP for platforms that don't randomize canary
HiSilicon-specific randomization routine for the __stack_chk_guard
should not be called for other platforms that don't implement
this function.
Fix build for targets that don't link with HiSi libraries when
stack smashing protector is enabled.

Signed-off-by: Zbigniew Bodek <zbigniew.bodek@huawei.com>
Change-Id: I1843c897b32991fddc3d0ba362d188c4a621d052
2020-11-17 23:07:01 +08:00
Zbigniew Bodek 4188734ee4 Allow to disable stack protector feature
Currently disabling stack protector will cause build to fail.
This commit will fix that problem and allow to toggle feature
when needed.

Signed-off-by: Zbigniew Bodek <zbigniew.bodek@huawei.com>
Change-Id: Iee8ccfdb9fce4ba69aa557e2ac915ddc45b2f21e
2020-11-17 23:07:01 +08:00
Zbigniew Bodek 450f63d7b0 Add Qemu ARM virtual platform to build configuration files
Remove some dependencies on HiSilicon and add new platform to build.

Signed-off-by: Zbigniew Bodek <zbigniew.bodek@huawei.com>
Change-Id: I8504bcc9a1bf1756e1e20694986d7774156f8b8e
2020-11-17 23:07:01 +08:00
Zbigniew Bodek 59db6662c2 Add new Qemu ARM virtual platform to Kconfig
Qemu ARM virtual platform emulates an ARM machine
with configurable, ARM components. This commit adds
configuration option for Cortex-A7 based virtual machine.

qemu_arm_virt_ca7 name is derived from a command
to invoke Qemu:
qemu-system-arm -M virt -cpu cortex-a7

Signed-off-by: Zbigniew Bodek <zbigniew.bodek@huawei.com>
Change-Id: Ia267ee7c989b8c22e6c19d6f11ff3ee2eef8148b
2020-11-17 23:07:01 +08:00
Zbigniew Bodek 647f91af7b Fix build problem after Kconfig file change
conf --silentoldconfig generates required autoconf.h file
but when invoked on modified Kconfig it will ask for user
input which breaks the build. To automatically regenerate
config structure and then autogenerate headers run
config --olddefconfig first.

Signed-off-by: Zbigniew Bodek <zbigniew.bodek@huawei.com>
Change-Id: If7f7653c80cc0c5c0d84015b8e50fcb66568d00a
2020-11-17 23:07:01 +08:00
openharmony_ci 0b2ac37c07 !27 [Lightweight PR]: 实现IPv6地址解析函数ip6addr_aton,代替lwip自带的,修正ifconfig配置ipv6地址时的误报错误
Merge pull request !27 from Caoruihong/N/A
2020-11-16 16:21:17 +08:00
openharmony_ci a2d3befc5a !29 使用不规范的安全函数
Merge pull request !29 from zhushengle/zhushengle_20201105100528
2020-11-05 14:25:42 +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
openharmony_ci c383ba65ae !28 【轻量级 PR】:内存泄漏、访问野指针以及竞态问题修复。
Merge pull request !28 from zhangfanfan2/N/A
2020-11-04 09:55:24 +08:00
zhangfanfan2 02788cedc0 内存泄漏、访问野指针以及竞态问题修复。 2020-11-03 11:20:09 +08:00
Caoruihong f2097a1f86 实现IPv6地址解析函数ip6addr_aton,代替lwip自带的,修正ifconfig配置ipv6地址时的误报错误 2020-11-02 18:27:34 +08:00
openharmony_ci 67a9c7b8b5 !23 修复LOS_BitmapSetNBits误将位数当作位模式的错误
Merge pull request !23 from laokz/bitmap
2020-10-29 16:08:58 +08:00
JING 69f5e85ebb spelling mistakes 2020-10-24 09:35:27 +08:00
openharmony_ci 18d64639b4 !24 jffs2镜像打包工具改为用户自行安装
Merge pull request !24 from JING/master
2020-10-23 10:47:09 +08:00
laokz 94542ad4b6 修正符号typo 2020-10-19 17:48:22 +08:00
evanscjv 899b034e3d 删除jffs2打包工具二进制文件 2020-10-19 16:18:59 +08:00
evanscjv 513fcf40d5 删除文件 tools/fsimage/mkfs.jffs2 2020-10-19 16:10:57 +08:00
laokz 3883ccb0a0 修复LOS_BitmapSetNBits误将位数当作位模式的错误 2020-10-17 23:25:24 +08:00
openharmony_ci 37eba37901 !20 【轻量级 PR】:Bugfix for fatfs double lock
Merge pull request !20 from evanscjv/N/A
2020-10-16 14:04:02 +08:00
evanscjv 58260bf5fe Bugfix for fatfs double lock 2020-10-16 10:16:14 +08:00
openharmony_ci 3425568551 !19 去除不必要的文件可执行权限
Merge pull request !19 from Caoruihong/drop_permission
2020-10-13 17:12:26 +08:00
Caoruihong 63bd69267a drop unnecessary executable file permission mode
Change-Id: Ia6c1f6302407a707b3ec9b805f4c92d8a7970b86
2020-10-13 16:37:25 +08:00
openharmony_ci ba0efaa706 !18 jiffs生成程序windows版本改为从华为云镜像下载
Merge pull request !18 from zhOu/master
2020-10-13 15:51:58 +08:00
zhOu 52c1d3f4af 删除文件 tools/fsimage/win-x86 2020-10-13 11:24:13 +08:00
openharmony_ci 0af36ec5bb !17 默认不应用CAP_NET_BROADCAST权限校验,保持与linux行为兼容
Merge pull request !17 from Caoruihong/xx
2020-10-09 17:49:05 +08:00
openharmony_ci 3c255345cc !16 用户态异常信息修复
Merge pull request !16 from Harylee/lihao_20200928190317
2020-10-09 09:28:39 +08:00
Caoruihong 990f3abe5b Description: default no check net broadcast capability
Reviewed-by: likailong
2020-09-30 17:08:08 +08:00
openharmony_ci 8122da7113 !11 修复tftp功能,重构部分lwIP移植代码
Merge pull request !11 from Caoruihong/caoruihong_20200924094756
2020-09-30 09:53:25 +08:00
openharmony_ci f9b7df63f9 !15 【轻量级 PR】:修改PCB中错误的注释,并统一注释格式
Merge pull request !15 from zhushengle/N/A
2020-09-29 09:37:55 +08:00
zhushengle 12b81567df 修改PCB中错误的注释,并统一注释格式 2020-09-28 21:47:42 +08:00
openharmony_ci e6dae81670 !14 【轻量级 PR】:Fix mmap
Merge pull request !14 from Harylee/N/A
2020-09-28 16:42:41 +08:00