Commit Graph

1632 Commits

Author SHA1 Message Date
zhanghongyu 3ac90d332d netlink: add RT_TABLE_LOCAL definition for mqttc5 build
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-21 01:25:34 +08:00
Yongrong Wang 62aa5ec3c4 sys/vm_sockets.h: move netpacket/vm_sockets.h to sys/vm_sockets.h
to compatible with different systems

Signed-off-by: Yongrong Wang <wangyongrong@xiaomi.com>
2026-04-21 01:24:06 +08:00
zhanghongyu 34b7787e2d net/packet: add PACKET_<ADD|DROP>_MEMBERSHIP support
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-21 01:23:50 +08:00
Bowen Wang 3055a8ac95 vm_socket: fix compile error, so include sys/socket.h in vm_socket.h
struct sockaddr is defined in sys/socket.h and struct sockaddr_vm use
struct sockaddr

Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2026-04-21 01:17:56 +08:00
Xiang Xiao 0f3baa7c27 netlink: Format and algin netlink.h
refactor only, no functional change.

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-21 01:09:05 +08:00
openvela-robot 154f6f9208 cmake(sync):sync cmake Toolchain change from github
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2026-04-21 01:09:02 +08:00
openvela-robot 36139bb0b5 arch/intel64: optimise context switch
We save interrupted TCB state on tcb->xcp.regs not interrupt stack now
which allows us to remove x86_64_savestate() from up_switch_context()
and other places.

Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2026-04-21 01:08:56 +08:00
openvela-robot 199768d644 note: sync minor differences in community code
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2026-04-21 01:08:50 +08:00
openvela-robot 29a809813f Revert "libc/atomic: decoupling atomic and spinlock to avoid recursion"
This reverts commit c37b0de28c96615cb1d5f0251903d89639223444.
2026-04-21 01:08:44 +08:00
openvela-robot 7f4881e106 get g_tcbinfo just use elf memory
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2026-04-21 01:08:38 +08:00
openvela-robot 2767a5fedd cmake: add newly added sources to cmake
These newly added files are missing from cmake.

Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>
2026-04-21 01:08:33 +08:00
openvela-robot ebd9346620 sched/signal: exit sig action when tcb group is null
Signed-off-by: zhangyuan29 <zhangyuan29@xiaomi.com>
2026-04-21 01:08:26 +08:00
openvela-robot 5be1dc755f Doc: Migrate changing the system clock configuration
Migrate the Changing the System Clock Configuration documentation from
the Confluence wiki to the official documentation

Signed-off-by: Ludovic Vanasse <ludovicvanasse@gmail.com>
2026-04-21 01:08:20 +08:00
openvela-robot 88759aa806 rpmsg/rpmsg_virtio: minor fix about rpmsg_virtio
1. code style, add FAR to pointer;
2. code style, add default branch in switch case statement;

Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2026-04-21 01:08:13 +08:00
yintao d18bacae17 net/rpmsg: use hash to handle rp_name
expand the user's rpname size
hash when exceed RPMSG_SOCKET_NAME_LEN due to the limitation of eptname

Signed-off-by: yintao <yintao@xiaomi.com>
2026-04-21 01:08:07 +08:00
Bowen Wang 15e3b116b3 net/vsock: add AF_VSOCK address family
Add AF_VSOCK address family support, This is the vsock framework
preparation patch.

Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2026-04-21 01:08:00 +08:00
openvela-robot 9174e751c2 systick:when isr_handle is NULL will be crash.
Signed-off-by: yangguangcai <yangguangcai@xiaomi.com>
2026-04-21 01:07:59 +08:00
openvela-robot 0f462a120f cmake: fix the typo in comments
fix the typo in comments and sync with community

Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2026-04-21 01:07:53 +08:00
openvela-robot 980658916b build.yml:disable CMake Ninja for Msys2
CI in the msys2 environment, the CMake ninja generator
will have a problem with parameters being too long

Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2026-04-21 01:07:47 +08:00
openvela-robot 227d0f1390 tools/gdb/gdbinit.py:add hint
Signed-off-by: yangao1 <yangao1@xiaomi.com>
2026-04-21 01:07:41 +08:00
openvela-robot 63a654ed6a board/qemu-armv7a: use fdt_virtio_mmio_devices_register() to register mmio devices
Use common implementation to register mmio device

Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2026-04-21 01:07:35 +08:00
openvela-robot d1e9e4fa1c Revert "mq: change mqueue msg mail to dynamic array"
This reverts commit 55f6f5e0af41e96980429c91d45521f7aa553b75.

Signed-off-by: ligd <liguiding1@xiaomi.com>
2026-04-21 01:07:29 +08:00
openvela-robot e1ce558054 mps3-an547:add mps3-an547 cmake build
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2026-04-21 01:07:23 +08:00
openvela-robot 1ba19fa876 netdb: fix may add duplicate DNS servers
struct sockaddr_in
{
  sa_family_t     sin_family;
  in_port_t       sin_port;
  struct in_addr  sin_addr;
  uint8_t         sin_zero[8];
};

sin_zero is probably a random number.

struct sockaddr_in6
{
  sa_family_t     sin6_family;
  in_port_t       sin6_port;
  uint32_t        sin6_flowinfo;
  struct in6_addr sin6_addr;
  uint32_t        sin6_scope_id;
};

sin6_flowinfo and sin6_scope_id is probably a random number.

Random numbers cause the same server configuration check failed,
so let's initialize it.

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-21 01:07:17 +08:00
openvela-robot 497c522397 arch: set current regs firstly in undefinedinsn
Need to save the regs firstly in case syslog triggers another crash.
Otherwise we may loose the register contents for the first exception.

Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>
2026-04-21 01:07:11 +08:00
openvela-robot 429974b1f9 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>
2026-04-21 01:07:05 +08:00
openvela-robot 98a02ad0af add lin error flags to lin.h
Signed-off-by: wangxiaoxin <wangxiaoxin@xiaomi.com>
2026-04-21 01:06:56 +08:00
openvela-robot cc56ff55e6 iss-hifi: adapt to new backtrace function
Signed-off-by: chenxiaoyi <chenxiaoyi@xiaomi.com>
2026-04-21 01:06:51 +08:00
openvela-robot 16ad5d9d38 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>
2026-04-21 01:06:45 +08:00
openvela-robot c479014e6c sigaction: sync with community
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2026-04-21 01:06:39 +08:00
openvela-robot dc9540fe31 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>
2026-04-21 01:06:34 +08:00
openvela-robot f8c3ad33c7 arch/x86_64:Delete useless functions and header files
synchronize file with NuttX upstream

Signed-off-by: liwenxiang1 <liwenxiang1@xiaomi.com>
2026-04-21 01:06:28 +08:00
openvela-robot f528b995b3 nuttx/syscall: export nxsem_getprioceiling and nxsem_setprioceiling via syscall
Signed-off-by: makejian <makejian@xiaomi.com>
2026-04-21 01:06:22 +08:00
openvela-robot 3f5efb76a6 cmake/add_library: enable library install by default
enable library install by default to support nuttx export for cmake

nuttx$ cmake --install build  --prefix $PWD/build/staging/
-- Install configuration: ""
-- Installing: nuttx/build/staging/lib/libarch.a
-- Installing: nuttx/build/staging/lib/libbinfmt.a
-- Installing: nuttx/build/staging/lib/libdrivers.a
-- Installing: nuttx/build/staging/lib/libfs.a
...

Signed-off-by: chao an <anchao@lixiang.com>
2026-04-21 01:06:16 +08:00
openvela-robot 83c1f66586 nuttx/qemu: Fix funciton up_idle multiple definition
Signed-off-by: yanghuatao <yanghuatao@xiaomi.com>
2026-04-21 01:06:09 +08:00
openvela-robot 65c91478e5 arm: sync with community
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2026-04-21 01:06:03 +08:00
openvela-robot 614f4f9672 Contributing and PR template fix.
* Fix CONTRIBUTING.md github link reference.
* Full URL is provided to avoid relative/fork reference issues.
* Minor update on full contributing documentation.

Signed-off-by: Tomasz 'CeDeROM' CEDRO <tomek@cedro.info>
2026-04-21 01:05:58 +08:00
openvela-robot f5d3c904aa arch/intel64_irq.c: synchronize file with NuttX upstream
move up_trigger_irq() at the same place
rename g_irq_spin to g_irq_spinlock

Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
2026-04-21 01:05:52 +08:00
openvela-robot d512cd4df8 goldfish: sync with qemu do rpmsg_syslog init at goldfish
Signed-off-by: ligd <liguiding1@xiaomi.com>
2026-04-21 01:05:47 +08:00
openvela-robot f8fa980a97 CMake/preprocess: fix typo PREPROCES -> PREPROCESS
correct the marco define from PREPROCES to PREPROCESS

Signed-off-by: chao an <anchao@lixiang.com>
2026-04-21 01:05:41 +08:00
openvela-robot 8080bf2c14 rpmsg_port_spi_slave: fix compile error when enable RPMSG_PORT_SPI_SLAVE only
Signed-off-by: liaoao <liaoao@xiaomi.com>
2026-04-21 01:05:35 +08:00
openvela-robot a772e6cff2 sched: sync with community
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2026-04-21 01:05:23 +08:00
openvela-robot cdf4012ec0 libm/newlib: remove -Wno-maybe-uninitialized
Since there's no warning presents now.

Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>
2026-04-21 01:05:17 +08:00
openvela-robot 6dd7c951f7 arch/x86_64:synchronize file with NuttX upstream
fix build break if disable CONFIG_SPINLOCK

Signed-off-by: liwenxiang1 <liwenxiang1@xiaomi.com>
2026-04-21 01:05:11 +08:00
openvela-robot 35d9ebdbc2 Revert "sched/group/setuptask_file: duplicate idle task fd for kernel thread"
let's using shared group for kthreads, see pull/12320

This reverts commit 4e24eec7b607e4a6a7eca0fae9c58f02dc72e002.
2026-04-21 01:05:05 +08:00
openvela-robot 7ae61c007d isrthread: community code synchronization to isrthread
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2026-04-21 01:04:59 +08:00
openvela-robot 7449835ce8 arch: arm64: Fix ARM64_CONTEXT_REGS number
This commit fixes the regression in https://github.com/apache/nuttx/pull/14063

Signed-off-by: lipengfei28 <lipengfei28@xiaomi.com>
2026-04-21 01:04:51 +08:00
openvela-robot 1bd4ef8abf net/pkt: fix raw socket send data length is insufficient.
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-21 01:04:45 +08:00
openvela-robot 6bdee81bd3 note: Increase crash dump buffer
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2026-04-21 01:04:39 +08:00
openvela-robot afceb8b0db queue: Community code synchronization queue
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2026-04-21 01:04:33 +08:00