fanjiangang
044ee68e80
arm/armv8-r: add implements of arm_get_mpid()
...
Signed-off-by: fanjiangang <fanjiangang@lixiang.com>
Signed-off-by: chao an <anchao@lixiang.com>
2024-10-12 14:00:32 +08:00
zhangyuan29
ed8007ac40
sched/signal: exit sig action when tcb group is null
...
nxsig_action will use tcb group when group release,
so check tcb group when do sig action.
[ap] dump_assert_info: Assertion failed : at file: signal/sig_action.c:205 task: ofonod process: Kernel 0xec89d5
[ap] sched_dumpstack: backtrace:
[ap] sched_dumpstack: [29] [<0x66e2e2>] backtrace_unwind+0x105/0x108
[ap] sched_dumpstack: [29] [<0x660272>] sched_backtrace+0x41/0x48
[ap] sched_dumpstack: [29] [<0x61c4dc>] sched_dumpstack+0x33/0x80
[ap] sched_dumpstack: [29] [<0x6023e4>] _assert+0x19b/0x39c
[ap] sched_dumpstack: [29] [<0x61b7e4>] __assert+0x7/0x10
[ap] sched_dumpstack: [29] [<0x6071a2>] nxsig_action+0x119/0x248
[ap] sched_dumpstack: [29] [<0x6072d8>] sigaction+0x7/0x24
[ap] sched_dumpstack: [29] [<0x66a072>] signal+0x4d/0x80
[ap] sched_dumpstack: [29] [<0x100fd36>] signalfd_file_close+0x35/0x60
[ap] sched_dumpstack: [29] [<0x64a7d8>] file_close+0x1b/0x44
[ap] sched_dumpstack: [29] [<0x649ac0>] files_putlist+0x2b/0x70
[ap] sched_dumpstack: [29] [<0x60491a>] group_leave+0x99/0xe4
[ap] sched_dumpstack: [29] [<0x605df8>] nxtask_exithook+0x4f/0xf4
[ap] sched_dumpstack: [29] [<0x603ca0>] _exit+0x33/0x3c
[ap] sched_dumpstack: [29] [<0x61ecf0>] abort+0x7/0xc
Signed-off-by: zhangyuan29 <zhangyuan29@xiaomi.com>
2024-10-12 13:39:21 +08:00
hujun5
4c1c05164a
sched/signal: There is no need to use sched_[un]lock
...
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2024-10-12 13:28:23 +08:00
hujun5
1ff49872a7
arch: There is no need to use sched_[un]lock
...
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2024-10-12 13:28:23 +08:00
hujun5
ef8d8ee627
rtc: There is no need to use sched_[un]lock
...
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2024-10-12 13:28:23 +08:00
hujun5
a4c9268a40
board: There is no need to use sched_[un]lock
...
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2024-10-12 13:28:23 +08:00
hujun5
b96a753747
libs/libc: There is no need to use sched_[un]lock
...
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2024-10-12 13:28:23 +08:00
hujun5
794d362335
sched/pthread: There is no need to use sched_[un]lock
...
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2024-10-12 13:28:23 +08:00
anjiahao
b503b323ce
sabre-6quad:by pass coredump ci ci
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-12 12:29:06 +08:00
anjiahao
56aa628eec
binfmt_loadmodule.c:fix build break
...
undefine lib_free
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-12 12:29:06 +08:00
anjiahao
0dd5228259
modlib:if use LMA, not set bss
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-12 12:29:06 +08:00
anjiahao
4f92d7aafd
modlib:Allow loading elf from block devices
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-12 12:29:06 +08:00
anjiahao
434442d707
modlib:move modlib_findsection to common headfile
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-12 12:29:06 +08:00
dongjiuzhu1
a3f3918198
binfmt/modlib: move modlib_sectname to public
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-10-12 12:29:06 +08:00
anjiahao
2be58054bb
modlib_bind:add new args export and nexport to modlib_bind
...
if modp is NULL, we can use export and nexport load externl symbol
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-12 12:29:06 +08:00
anjiahao
e5f9b42ea0
binfmt/libelf:Remove libelf implementation [2/2]
...
this commit is part two, all logic move to modlib, so we can remove it.
and change all use defconfig
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-12 12:29:06 +08:00
anjiahao
1fc2cd7816
binfmt:use modlib api inside of elf api [1/2]
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-12 12:29:06 +08:00
anjiahao
2931d1e85f
modlib:support modlib can load exec
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-12 12:29:06 +08:00
anjiahao
9c191e93b7
modilib:add new args to modp record init arry
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-12 12:29:06 +08:00
anjiahao
e9550783d3
modlib:add new api to uninitialize modp
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-12 12:29:06 +08:00
anjiahao
91c7e8e44b
modlib:move Exception section logic to modlib
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-12 12:29:06 +08:00
anjiahao
dfc5e4dd55
modlib:Move addrenv logic to modlib
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-12 12:29:06 +08:00
anjiahao
52126aede1
coredump:Move coredump to sched/misc
...
1. move coredump form libelf to sched/misc
2. rename core_dump to coredump
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-12 12:29:06 +08:00
anjiahao
9e868cadfb
coredump:Move private functions to internal header files
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-12 12:29:06 +08:00
anjiahao
4ec4c5e1b4
modlib:fix bug when read modlib sections name
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-12 12:29:06 +08:00
anjiahao
489223f0d5
modlib:move get file info logic to modlib
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-12 12:29:06 +08:00
anjiahao
18d113e06e
modlib:move elf LMA logic to modlib
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-12 12:29:06 +08:00
anjiahao
ae4538646b
modlib:Modify modlib loading DYN elf file conditions
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-12 12:29:06 +08:00
wangyongrong
24b0fa0072
pci.h: add pci_write/read_mmio_qword support
...
1. optimize the macro, add () for the marco arguments;
2. add pci_write_mmio_qword() and pci_read_mmio_qword() api;
Signed-off-by: wangyongrong <wangyongrong@xiaomi.com>
2024-10-12 12:16:25 +08:00
wangxiaoxin
1b8c17ff15
add lin error flags to lin.h
...
Signed-off-by: wangxiaoxin <wangxiaoxin@xiaomi.com>
2024-10-12 12:15:58 +08:00
wangyongrong
ad2e6fb2ba
pci_ivshmem.c: ivshmem_support_irq API support
...
ivshmem based driver can use this api to judge weather current
ivshmem device support irq or not, and use polling mode or irq
mode to process the event.
Signed-off-by: wangyongrong <wangyongrong@xiaomi.com>
2024-10-12 12:13:23 +08:00
Bowen Wang
99b6c77c79
drivers/rptun: minor fix about rptun
...
1. follow the nxstyle, change formot of rptun_init();
2. remove used wqueue header file;
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2024-10-12 12:12:00 +08:00
cuiziwei
57e901e5ea
nuttx/arch: Enabling ARCH_MATH_H is required when compiling sim with the 13.2 version of the toolchain.
...
Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2024-10-12 12:05:05 +08:00
zhanghongyu
6f9543daec
sim: fix crash caused by function recursion.
...
114 up_interrupt_context () at /home/zhhyu/source/vela/dev/nuttx/include/arch/irq.h:163
115 stack_monitor_enter (this_fn=0x400145dc <up_current_regs>, call_site=0x4002d5c7 <__cyg_profile_func_enter+120>, arg=0x0) at instrument/stack_monitor.c:63
116 0x000000004002d5c7 in __cyg_profile_func_enter (this_fn=0x400145dc <up_current_regs>, call_site=0x4002d5c7 <__cyg_profile_func_enter+120>) at misc/lib_instrument.c:68
117 0x00000000400156c7 in up_current_regs () at instrument/stack_monitor.c:62
118 up_interrupt_context () at /home/zhhyu/source/vela/dev/nuttx/include/arch/irq.h:163
119 stack_monitor_enter (this_fn=0x400145dc <up_current_regs>, call_site=0x4002d5c7 <__cyg_profile_func_enter+120>, arg=0x0) at instrument/stack_monitor.c:63
120 0x000000004002d5c7 in __cyg_profile_func_enter (this_fn=0x400145dc <up_current_regs>, call_site=0x4002d5c7 <__cyg_profile_func_enter+120>) at misc/lib_instrument.c:68
121 0x00000000400156c7 in up_current_regs () at instrument/stack_monitor.c:62
...
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2024-10-12 11:49:18 +08:00
cuiziwei
eb4d1a14b3
nuttx/libcxxtest: Fix build error.
...
libcxx/src/thread.cpp:123:2: error: #error "Thread.cpp needs to enable config of CONFIG_TLS_TASK_NELEM," " and CONFIG_TLS_TASK_NELEM > 0, please enable it"
123 | #error "Thread.cpp needs to enable config of CONFIG_TLS_TASK_NELEM," \
| ^~~~~
Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2024-10-12 11:48:44 +08:00
liwenxiang1
43a8a80c74
arch/x86_64:Code style is consistent
...
Signed-off-by: liwenxiang1 <liwenxiang1@xiaomi.com>
2024-10-12 11:20:24 +08:00
chao an
5aa13bc490
sched/spinlock: remove nesting spinlock support
...
developers must be careful to hold spinlocks and ensure all
of protected code is under control, so remove support for nested
spinlocks to improve performance.
Signed-off-by: chao an <anchao@lixiang.com>
2024-10-12 11:18:10 +08:00
hujun5
302d2f3b56
x86_64: align some code
...
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2024-10-12 10:19:48 +08:00
Neo Xu
49eee3841c
stm32f429i-disco/systemview: enable example of noteprintf
...
Also enable task name for better demo purpose.
Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
2024-10-12 09:58:00 +08:00
xuxingliang
62f0126b06
drivers/segger: add note vprint support
...
Print note log to sysview terminal.
See https://www.segger.com/products/development-tools/systemview/#logging-output
Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>
2024-10-12 09:58:00 +08:00
ligd
01676cb9cd
local_socket: corrent send/recv return value after shutdown
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2024-10-12 09:57:20 +08:00
wangmingrong1
a5c0dbe772
mm/sw_tags: add config for no longer checking for tags 0
...
1. When dynamically loading, the read-only data of arm64 architecture is accessed through PC offset. When opening the tag kasan, because the PC value does not have a tag, accessing the read-only data will be detected with a tag mismatch error.
2. uninitial heap use 0xff poison, initial heap use 1-254 unpoison.
Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
2024-10-12 09:52:27 +08:00
Tim Hardisty
3027be72c3
Update sam_udphs.c
2024-10-12 09:51:19 +08:00
makejian
b27272936b
nuttx/libc: mutex support to set default mode even configured with priority protect
...
Signed-off-by: makejian <makejian@xiaomi.com>
2024-10-12 09:50:54 +08:00
makejian
e8a890ef42
nuttx/syscall: export nxsem_getprioceiling and nxsem_setprioceiling via syscall
...
Signed-off-by: makejian <makejian@xiaomi.com>
2024-10-12 09:50:54 +08:00
buxiasen
ca45ad69bd
misc: flush syslog before possible long time cost coredump
...
When coredump to mtd, it maybe cost lots of time, do flush syslog can
make user access all log when coredump processing, should be better.
Signed-off-by: buxiasen <buxiasen@xiaomi.com>
2024-10-12 09:32:44 +08:00
buxiasen
4b315b3606
mm: dump more information when failed dump detail
...
Signed-off-by: buxiasen <buxiasen@xiaomi.com>
2024-10-12 09:32:44 +08:00
anjiahao
c0d416584f
malloc:if malloc filed need print leak memory detatls
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-12 09:32:44 +08:00
buxiasen
c4f82c1f66
drivers/timer: fix goldfish timer did not included in cmake
...
Signed-off-by: buxiasen <buxiasen@xiaomi.com>
2024-10-12 09:31:15 +08:00
buxiasen
9ea38368ad
goldfish_timer: fix interrupt not cleared
...
will cause a loop interrupt handler, in some new version qemu
Signed-off-by: buxiasen <buxiasen@xiaomi.com>
2024-10-12 09:31:15 +08:00