Commit Graph

403 Commits

Author SHA1 Message Date
Alin Jerpelea 1c4ebed9a4 include: migrate to SPDX identifier
Most tools used for compliance and SBOM generation use SPDX identifiers
This change brings us a step closer to an easy SBOM generation.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
Signed-off-by: ligd <liguiding1@xiaomi.com>
2026-04-21 00:59:40 +08:00
openvela-robot b566da436e sim:support sim elf and dynamic libs package in post build
use the dynamic library .so of the binding compilation environment,
and then modify the dynamic loader of elf at runtime to run sim elf across system versions

1.add post-build for sim build
2.collect dynamic .so and dynamic interpreter
3.add execution script for the entire package sim elf

change text-segment to 0x50000000
because patchelf will modify the .dynamic section in elf,
the upward alignment of elf will be less than 0x3fffffff,
which will cause asan shadow memory overlap error

Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2026-04-21 00:59:38 +08:00
Alin Jerpelea 8a3b7f63ca include: migrate to SPDX identifier
Most tools used for compliance and SBOM generation use SPDX identifiers
This change brings us a step closer to an easy SBOM generation.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2026-04-21 00:59:19 +08:00
anjiahao b1712356af sys/queue.h: remove CONFIG_ALLOW_MIT_COMPONENTS
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2026-04-20 22:31:31 +08:00
openvela-robot b1c0dc5df0 lib/math32.h: support LOG2_CEIL/LOG2_FLOOR function at compile time
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2026-04-20 22:31:30 +08:00
anjiahao 9ddde4fa42 sys/queue.h: remove CONFIG_ALLOW_MIT_COMPONENTS
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2026-04-20 22:31:28 +08:00
openvela-robot 20b05bf587 boards/spresense: remove BOARDIOC_SDCARD_SETNOTIFYCB ioctl
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2026-04-20 22:30:58 +08:00
openvela-robot 0d875ad479 Revert "make/archive: replace the dependency to preprequisite list"
This reverts commit dcc2db8d4048b6021cf478c6e1414ad43cc3d831.
2026-04-20 22:30:56 +08:00
openvela-robot 0248fccff8 board/arch: Remove FAR decorator
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 22:30:49 +08:00
openvela-robot 380022b003 c++: Change the default value of CXX_STANDARD from c++17 to gnu++17
since many 3rd party code use some gnu c++ extension

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 22:30:45 +08:00
openvela-robot 8a7fd00914 arch/mpfs: Make selection of SBI boot or direct boot run-time configurable
Allow bootloader to select run-time whether the payload binary is booted with
SBI or directly by jumping to entrypoint address.

- Use just one bitmask to select sbi or direct boot for each hart
- Add mpfs_set_use_sbi function to allow selecting how to boot
- Initialize the bitmask by default according to the configuration flags
- Add a header file for including the function prototypes in bootloader code

Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
2026-04-20 22:30:38 +08:00
openvela-robot eabe0c8c00 tcp_reset: check the conn is exist when tcp_reset
tcp_input:
If we didn't find an active connection that expected the packet,
If the SYN flag isn't set,
It is an old packet and we send a RST.
conn is NULL when this case

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-20 22:30:35 +08:00
openvela-robot 062228c795 tm4c1294-launchpad/Kconfig: Fix warning: defaults for choice values not supported
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 22:30:32 +08:00
openvela-robot c065628567 boards/sim/windows: enable custom options
1. boards/sim: enable child status
2. boards/sim/windows: enable custom options
3. sim/windows: enable hostfs

Signed-off-by: chao an <anchao@xiaomi.com>
2026-04-20 22:30:28 +08:00
openvela-robot 1fa289102d Revert "add holder for mutex"
This reverts commit fc176addeb69bfdc1f91646cadb06dc0d9e0db39.
2026-04-20 22:30:24 +08:00
openvela-robot bc0e190214 net/netdev: Avoid hardcoded guardsize when using d_iob
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2026-04-20 22:30:20 +08:00
openvela-robot 2043df52bf add holder for mutex
Signed-off-by: lilei19 <lilei19@xiaomi.com>
2026-04-20 22:30:16 +08:00
openvela-robot 6a240c8772 support ipv4 ToS and ipv6 TrafficClass
Signed-off-by: 梁超众 <liangchaozhong@xiaomi.com>
2026-04-20 22:30:13 +08:00
openvela-robot d54b2a8628 Fix mmap/fs_mmap.c:259:13: warning: 'mapped' may be used uninitialized in this function [-Wmaybe-uninitialized]
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 22:30:09 +08:00
openvela-robot f24a85b9f1 sched: fix task_delete crash in SMP case
A testcase as following:

child_task()
{
  sleep(3);
}

main_task()
{
  while (1)
    {
      ret = task_create("child_task", child_task, );
      sleep(1);

      task_delete(ret);
    }
}

Root casuse:
task_delete hasn's cover the condition that the deleted-task
is justing running on the other CPU.

Fix:
Let the nxsched_remove_readytorun() do the real work

Signed-off-by: ligd <liguiding1@xiaomi.com>
2026-04-20 22:30:06 +08:00
openvela-robot 256c583da8 mempool:remove unnecessary alignment
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2026-04-20 22:30:02 +08:00
openvela-robot 99273dbc3d mm/mempool: fix compile warning
mempool/mempool.c:41:9: warning: 'ALIGN_UP' macro redefined [-Wmacro-redefined]
        ^
nuttx/include/arch/irq.h:72:11: note: previous definition is here

Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2026-04-20 22:30:00 +08:00
openvela-robot 442798572e Support fragmentation and reassembly
Signed-off-by: luojun1 <luojun1@xiaomi.com>
2026-04-20 22:29:50 +08:00
openvela-robot da2629b448 fs/mmap: rammap should return buffer start address
Signed-off-by: Xuxingliang <xuxingliang@xiaomi.com>
2026-04-20 22:29:47 +08:00
openvela-robot 206adb1ea2 fs: Support O_NOFOLLOW flag
https://pubs.opengroup.org/onlinepubs/9699919799.2013edition/functions/open.html:
O_NOFOLLOW
If path names a symbolic link, fail and set errno to [ELOOP].

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 22:29:44 +08:00
openvela-robot 1881f4289b net: Move s_flags to last to avoid the padding added by compiler
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 22:29:41 +08:00
openvela-robot 3b8466fcd6 arch/arm/src/armv7-a/r: fix kconfig error of l2 cache latency
fix the error of the config name and set latency config param bool to int

Signed-off-by: luoyong1 <luoyong1@xiaomi.com>
2026-04-20 22:29:38 +08:00
openvela-robot 5cb5cb67df net: Move accept to libc after https://github.com/apache/nuttx/pull/8083
since accept can simply forward to kernel accept4 function

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 22:29:35 +08:00
openvela-robot f690328c04 mm/mm_heap: remove kasan in MM_ADD_BACKTRACE
do simple copy to instead of memset and memcpy operation because
they have been instrumented, if you access the posion area,
the system will crash.

Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2026-04-20 22:29:29 +08:00
openvela-robot 0b467f6f2c arch/armv7-ar: flush dcache when addr is not aligned with cache line
When invalidate address is not aligned with cache line,
must align address and flush the cache line.

Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2026-04-20 22:29:26 +08:00
openvela-robot c523777abf arch/arm/src: add pl310 l2cache's kconfig for latency
Signed-off-by: luoyong1 <luoyong1@xiaomi.com>
2026-04-20 22:29:22 +08:00
openvela-robot 8b0c2401d2 net/mld: fix build break of mld router
Signed-off-by: chao an <anchao@xiaomi.com>
2026-04-20 22:29:18 +08:00
openvela-robot 6110d00cb6 esp32: Fix QEnconder reset position and small typo
The PCNT RST bit needs to be set to zeroing the counter and then
this same bit needs to be cleared to returning counting.
2026-04-20 22:29:15 +08:00
openvela-robot 4df2231ca8 Fix usrsock/usrsock_conn.c:227:11: error: implicit declaration of function 'net_lockedwait_uninterruptible'
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 22:29:13 +08:00
openvela-robot a652e1a614 mm: Integrate TLSF manager
can be enabled by CONFIG_MM_TLSF_MANAGER=y

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2026-04-20 22:29:06 +08:00
openvela-robot 4ed854cfa4 change g_usrsock_rpmsg_handler's defination to make it C89 compatible
Signed-off-by: 梁超众 <liangchaozhong@xiaomi.com>
2026-04-20 22:29:03 +08:00
openvela-robot e5732db910 Fix scope issues with "switch ... case"
Signed-off-by: liushuai25 <liushuai25@xiaomi.com>
2026-04-20 22:29:00 +08:00
openvela-robot 654af18f0a arch/sim: add arch/math.h
To avoid introducing __GLIBC__ symbol which may affect others

Signed-off-by: ptr_b <bijunda1@xiaomi.com>
2026-04-20 22:28:53 +08:00
openvela-robot c77d25ccff fix the some else bug of strtold
I accidentally changed it when I was optimizing the code

Signed-off-by: lilei19 <lilei19@xiaomi.com>
2026-04-20 22:28:43 +08:00
openvela-robot 67b2478b71 fs/mmap: Remove the duplication rammap handling
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 22:28:39 +08:00
openvela-robot 50d9edc3a5 boards/arm/cxd56xx/spresense: fix card detect status reading
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2026-04-20 22:28:36 +08:00
openvela-robot b985d1b010 crypto:support hash streming need save ctx
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2026-04-20 22:28:33 +08:00
openvela-robot 1251d09144 arch/xtensa/esp32: Fix typo and check PU/PD registers 2026-04-20 22:28:29 +08:00
openvela-robot 00ef2340fe getaddrinfo: add AI_NUMERICHOST flag handle
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-20 22:28:24 +08:00
openvela-robot 7b3d080033 fs/poll: add missing FAR qualifier to poll()
Follow-up to #8072
2026-04-20 22:28:18 +08:00
openvela-robot 09d334fe1f Revert "fs/msync: support msync"
This reverts commit c5480bf92a66ce16ebe1b593d17e4f1d7c0790eb.
2026-04-20 22:28:12 +08:00
openvela-robot 13e25d060a sim/Kconfig: move some i2c,spi configs from board to arch
Move `SIM_I2CBUS_ID` and `SIM_SPIDEV_NAME` from board to arch.
This allows you not to rely on board configuration.

Signed-off-by: xinbingnan <xinbingnan@xiaomi.com>
2026-04-20 22:28:09 +08:00
openvela-robot 8627787eb9 Add mm/mm_map virtual memory mapping list
The task_group specific list can be used to store information about
mmappings.

For a driver or filesystem performing mmap can also enable munmap by
adding an item to this list using mm_map_add(). The item is then
returned in the corresponding munmap call.

Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
2026-04-20 22:28:06 +08:00
openvela-robot 7620087c7a move usrsock to kernel space
Signed-off-by: 梁超众 <liangchaozhong@xiaomi.com>
2026-04-20 22:28:03 +08:00
openvela-robot bfb0c80400 libc: update acle-compat.h format
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2026-04-20 22:28:00 +08:00