Oopenvela-robotassert: avoid syscall when system is not ready
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
Merge branch 'master' into vela apache/nuttx commit id: eb27ebba8adfe29644a7b890f86e6f16941921dc Signed-off-by: ligd <liguiding1@xiaomi.com> Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> | 2 个月前 | |
libs/libc/assert: add LIBC_ASSERT_CUSTOM For example dual-core code compile/link at one time but only one core managed by nuttx. The second core will call __assert, as it should not handle by us, should provide a option to allow outside do custom implementation. Signed-off-by: buxiasen <buxiasen@xiaomi.com> | 2 个月前 | |
libc/assert: fix makefile judgment condition error arm-none-eabi/bin/ld: /tmp/cc483Mdv.ltrans5.ltrans.o: in function cryptowrite.lto_priv.0': <artificial>:(.text.cryptowrite.lto_priv.0+0x1c): undefined reference to __stack_chk_fail' Signed-off-by: yinshengkai <yinshengkai@xiaomi.com> | 2 个月前 | |
assert: avoid syscall when system is not ready If system crashed before irq is initialized, the syscall may cause PC jump to wrong place. In this patch, we check the os init state and call _assert directly. Signed-off-by: xuxingliang <xuxingliang@xiaomi.com> | 2 个月前 | |
lib_stackchk.c: a duplicate implementation error will be reported during compilation. ld.lld: error: duplicate symbol: _stack_chk_fail defined at defined at lib_stackchk.c:57 (/home/zhenshiquan/update_vela/vendor/xrinng/mcu_common/nuttx/libs/libc/assert/lib_stackchk.c:57 lib_stackchk.o:(_stack_chk_fail) in archive /home/zhenshiquan/update_vela/vendor/xring/mcu_common/nuttx/staging/libc.a VVV SSS irq.c:208 (/home/zhenshiquan/update_vela/vendor/xring/mcu_common/nuttx/arch/arm/src/chip/mcu/corttex-m3/src/irq.c:208) irq.o:(.text.__stack_chk_fail+0x1) in archive /home/zhenshicuan/update_vela/vendor/xring/mcu_common/nuttx/staging/libarech. duplicate symbol: ld.lld: error: _stack_chk_guard defined at defined at lib_stackchk.c:33 T/home/zhenshiquan/update_vela/vendor/xring/mcu_common/nuttx/libs/libe/assert/lib_stackchkC:33 lib_stackchk.o:(_stack_chk_guard) in archive /home/zhenshiquan/update_vela/vendor/xring/mcu_common/nuttx/staaging/libc. VVV irq.c:214 (/home/zhenshiquan/update_vela/vendor/xring/mcu_common/nuttx/arch/arm/src/chip/mcu/corttex-m3/src/irq.c:214 irg.o:(.data.__ _stack_chk_guard+0x0)_in archive /home/zhenshiquan/updaate_vela/vendor/xring/mcu_common/nuttx/staging/libarch.a make[2]: *** [Makefile:212: nuttx] Error 1 make[1]: *** [tools/Unix.mk:551: nuttx] Error 2 imake[1]: Leaving directory /home/zhenshiquan/update_vela/vendor/xring/mcu_common/nuttx Error: ############ build /home/zhenshiquan/update vela/vendor/xring/mcu common/../lpctrl/platform/xring o1/base/configs/common fail ########## Signed-off-by: hujun5 <hujun5@xiaomi.com> | 2 个月前 |