Commit Graph

407 Commits

Author SHA1 Message Date
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
Harylee f62115dfef Fix mmap 2020-09-28 16:32:18 +08:00
l00517597 14ed17ca76 Description:Fix the offset calculating of pc and lr in elf file.
Reviewed-by:huangjieliang zhushengle
2020-09-28 15:37:47 +08:00
openharmony_ci abfa4988e5 !13 缩进修复
Merge pull request !13 from zhushengle/master
2020-09-28 15:06:35 +08:00
zhushengle a73348da8d modify the indentation 2020-09-28 14:35:53 +08:00
openharmony_ci e5ef0f25ba !12 解决用户态锁在高并发场景下的静态问题
Merge pull request !12 from zhushengle/master
2020-09-28 14:24:09 +08:00
zhushengle c884ada07d Solve the static problem of user mode locking under high concurrency. 2020-09-28 14:12:46 +08:00
openharmony_ci aa407d3721 !10 修正缩进风格
Merge pull request !10 from Caoruihong/caoruihong_20200914105449
2020-09-24 22:40:53 +08:00
c00546070 4f55f678c1 Description: add dhcps and tftpc
Reviewed-by: jianghan
2020-09-22 23:58:05 +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
Caoruihong c9b9d19b6f !6 【轻量级 PR】:no check net capability for binding ANY_addr
Merge pull request !6 from Caoruihong/N/A
2020-09-14 23:55:31 +08:00
Caoruihong 9c10570033 !5 修正缩进风格
Merge pull request !5 from Caoruihong/caoruihong_20200914105449
2020-09-14 11:33:20 +08:00
c00546070 9b25a48dd4 Description: fix indentations
Reviewed-by: jianghan
2020-09-14 10:42:23 +08:00
Caoruihong aef38baf44 !2 【轻量级 PR】:#I1UT4S 排版问题
Merge pull request !2 from Caoruihong/N/A
2020-09-11 17:21:26 +08:00