Commit Graph

478 Commits

Author SHA1 Message Date
fangxinyong 2d79388e40 misra_c_10_4_violation: change priorit/policy to int type
In the POSIX, both policy and priority are defined as int type.
To avoid unnecessary cast, NuttX internally changes these to int as well

Signed-off-by: fangxinyong <fangxinyong@xiaomi.com>
2026-04-21 01:29:21 +08:00
fangxinyong 922d5f11fb task: fix misra_c_10_4 violation essential type operand of unsigned and signed
Signed-off-by: fangxinyong <fangxinyong@xiaomi.com>
2026-04-21 01:29:08 +08:00
anjiahao 7953bf05ac mm:support set task heapsize when task init
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2026-04-21 01:21:32 +08:00
anjiahao 5d18dbdbe3 sched/task:task_init by attr, remove stack, stackaddr, priority
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2026-04-21 01:21:32 +08:00
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
Stuart Ianna ac3ec4df97 libs/libc/spawn: Add minimal implementation for posix_spawnattr_destory.
Add a minimal implementation to suppress warnings when building
application code shared with other operating systems.

For example:

When building with a c++ compiler and GCC 12.2.0, the following warning is emitted:

nuttx/include/spawn.h:178:40: warning: statement has no effect [-Wunused-value]
  178 | #define posix_spawnattr_destroy(attr) (0)
2026-04-20 23:27:50 +08:00
openvela-robot 4082950bcd sched: Remove the unused tcb argument from group_setupidlefiles
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 23:27:49 +08:00
openvela-robot 494b61d827 stm32h7/linum-stm32h753bi: Added suport to userlerds library.
Signed-off-by: Jorge Guzman <jorge.gzm@gmail.com>
2026-04-20 23:27:46 +08:00
openvela-robot b16571aef2 adjtime(): Improve configuration and math
1) Previously adjustments less than 1 microsecond per tick would be
   completely ignored. Now they are applied over a shorter period at
   a rate of 1 us per tick.

2) Previously CLOCK_ADJTIME_PERIOD was in units of 1/100th of second.
   Change to milliseconds to be more generally useful unit.
   Change setting name to CLOCK_ADJTIME_PERIOD_MS to make the unit change
   easier to notice.

3) Previously CLOCK_ADJTIME_SLEWLIMIT was in percentage.
   Most clock crystals have better accuracy than 1%, so the minimum slew
   rate was excessive. Change to CLOCK_ADJTIME_SLEWLIMIT_PPM with setting
   value in parts per million.

4) No need to use floating point math in clock_adjtime.c.
2026-04-20 23:27:43 +08:00
openvela-robot 7341422139 driver/usbdev_fs: fix minor issue about unbind
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2026-04-20 23:27:39 +08:00
openvela-robot a1920937fe fs/inode: Change inode_unlink to static function
since it's only be called by inode_remove now

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 23:27:36 +08:00
openvela-robot 6332d43063 xtensa/esp32s3: Support partition and OTA device
Signed-off-by: chenwen@espressif.com <chenwen@espressif.com>
2026-04-20 23:27:33 +08:00
openvela-robot 86338f1818 binfmt/elf: Select ARCH_USE_TEXT_HEAP if ARCH_HAVE_TEXT_HEAP
Using up_textheap_memalign to allocate memory if arch support textheap
for loading section.

The default system heap does not support execution permissions,
so up_textheap_memalign allocation is required.

this patch can fix issue about #11043

update esp32 elf config:
remove -CONFIG_ARCH_USE_TEXT_HEAP=y becuase ARCH_CHIP_ESP32 select
ARCH_HAVE_TEXT_HEAP

Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2026-04-20 23:27:29 +08:00
openvela-robot ca73b2dd9b boards/esp32s3: Link stack checking function and data to SRAM when enable flash or PSRAM driver
During PSRAM initialization and flash operations, the Cache needs to be disabled.
So all data and code for the aforementioned scope is required to be placed in Internal RAM.
2026-04-20 23:27:24 +08:00
openvela-robot 4d529586b0 stack record:fix typo
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2026-04-20 23:27:21 +08:00
openvela-robot 0ce3c5d6ae drivers/lcd: add stride support for LCD driver
support LCD stride for GET_AREA and PUT_AREA operation

Signed-off-by: rongyichang <rongyichang@xiaomi.com>
2026-04-20 23:27:17 +08:00
openvela-robot a48562338c Deleted the unused callback ops in pcie
Signed-off-by: yangshuyong <yangshuyong@xiaomi.com>
2026-04-20 23:27:14 +08:00
openvela-robot 71278214fd Fix Kconfig style
Remove extra TABs
Remove spaces from Kconfig
Add comments
2026-04-20 23:27:10 +08:00
openvela-robot 20fe15947a minidump: Use addr2line without any other operations
Signed-off-by: wangmingrong <wangmingrong@xiaomi.com>
2026-04-20 23:27:07 +08:00
openvela-robot 85b3af05e4 simwifi: Fix a compile error.
sim/sim_wifidriver.c:569:31: warning: implicit declaration of function ‘hex2num’ [-Wimplicit-function-declaration]
  569 |                         val = hex2num(*pos);
      |                               ^~~~~~~

Signed-off-by: liqinhui <liqinhui@xiaomi.com>
2026-04-20 23:27:04 +08:00
openvela-robot 61eadbd453 fs_files.c: make sure that fs_getfilep is not interrupted when holding mutex
this fixes the issue https://github.com/apache/nuttx/issues/6012

Signed-off-by: chao an <anchao@xiaomi.com>
2026-04-20 23:27:00 +08:00
openvela-robot 0a6f190912 Documentation: migrate "STM32 Null Pointer Detection" from wiki
link: https://cwiki.apache.org/confluence/display/NUTTX/STM32+Null+Pointer+Detection

Co-authored-by: hartmannathan <59230071+hartmannathan@users.noreply.github.com>
2026-04-20 23:26:56 +08:00
openvela-robot cc42679a8a coresight:add tpiu device support
Signed-off-by: liaoao <liaoao@xiaomi.com>
2026-04-20 23:26:51 +08:00
openvela-robot 8bc5e12a97 libs/libc: adapt the cmake script from the makefile
fix the cmake build error.

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-20 23:26:47 +08:00
openvela-robot ce9a8a612d coresight:add common api for coresight system
Signed-off-by: liaoao <liaoao@xiaomi.com>
2026-04-20 23:26:44 +08:00
openvela-robot 895e337e1e sched: Check for zero sleep time and yield CPU if
necessary

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2026-04-20 23:26:40 +08:00
openvela-robot 2f9dc1fa2e inotify:change log level in case of flood the screen
Signed-off-by: guohao15 <guohao15@xiaomi.com>
2026-04-20 23:26:36 +08:00
openvela-robot fba3228a3f esp32s3: Fix issue regarding IRAM-enabled ISRs by fixing the linker
After https://github.com/apache/nuttx/pull/11007/ was merged, the
path for some files changed, requiring the linker to be fixed to
make it run from the internal memory once again.
2026-04-20 23:26:33 +08:00
openvela-robot b3ef958ed9 fix code format in rptun ping
Signed-off-by: wangyongrong <wangyongrong@xiaomi.com>
2026-04-20 23:26:27 +08:00
openvela-robot fd7eec5464 ioctl: add definitions related to ethtool
We reuse the linux platform code when adapting the matter library, in order to compile through, so first add the ethtool related definition

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-20 23:26:21 +08:00
openvela-robot bc127c3920 simwifi: show the connected chinese essid.
Signed-off-by: liqinhui <liqinhui@xiaomi.com>
2026-04-20 23:25:55 +08:00
Stuart Ianna 1f2a86a324 libs/libc/spawn: Add minimal implementation for posix_spawnattr_destory.
Add a minimal implementation to suppress warnings when building
application code shared with other operating systems.

For example:

When building with a c++ compiler and GCC 12.2.0, the following warning is emitted:

nuttx/include/spawn.h:178:40: warning: statement has no effect [-Wunused-value]
  178 | #define posix_spawnattr_destroy(attr) (0)
2026-04-20 23:25:50 +08:00
Xiang Xiao 5a8c18c1bc sched/spawn: Rename task_spawnattr_[get|set]stack[size|addr] to posix_spawnattr_[get|set]stack[size|addr]
since they can be not only used in task_spawn but also in posix_spawn

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 22:15:59 +08:00
Xiang Xiao f387cbf961 sched/spawn: Support task_spawnattr_[set|get]stacksize in kernel mode
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Signed-off-by: chao an <anchao@xiaomi.com>
2026-04-20 22:15:59 +08:00
openvela-robot c67c384640 arch/arm/samv7: fix compilation warnings
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2026-04-20 22:15:56 +08:00
openvela-robot 7c77985a10 xtensa/esp32s2: Move linker scripts to folder common to all boards 2026-04-20 22:15:52 +08:00
openvela-robot d4f8b23288 Fix video/video.c:1458:52: error: implicit conversion from enumeration type 'enum v4l2_buf_type' to different enumeration type 'imgsensor_stream_type_t' (aka 'enum imgsensor_stream_type_e') [-Werror,-Wenum-conversion]
ret = g_video_sensor_ops->validate_frame_setting(type, nr_fmt, sf, &si);
       ~~~~~~~~~~~~~~~~~~                         ^~~~

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 22:15:44 +08:00
openvela-robot 6d308c0cda tools: replace INCDIR to Makefile variable
In the past, header file paths were generated by the incdir command
Now they are generated by concatenating environment variables

In this way, when executing makefile, no shell command will be executed,
it will improve the speed of executing makfile
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2026-04-20 22:15:41 +08:00
openvela-robot d2fb00979a kasan: fix kasan race-condition
Signed-off-by: ligd <liguiding1@xiaomi.com>
2026-04-20 22:15:35 +08:00
openvela-robot 92efcae635 Revert "mpfs/mpfs_ddr.c: Stop the DDR training once it is completed"
This reverts commit ea9144bda8287e8819c08244ffbab1a45fb47204.

The commit made Icicle MPFS DDR useless. Revert the change for now.

Signed-off-by: Eero Nurkkala <eero.nurkkala@offcode.fi>
2026-04-20 22:15:28 +08:00
openvela-robot cd44bbca66 Fix the format string mismatch warning
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 22:15:25 +08:00
openvela-robot 074c7e893c arch_timer: adjust timer/arch_timer to support tick
Enable CONFIG_SCHED_TICKLESS_TICK_ARGUMENT in tickless mode
to improve the performance.
2026-04-20 22:15:20 +08:00
openvela-robot 79e98fb369 mm_heap: add debug assert to check the alignment problem
Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
Signed-off-by: YAMAMOTO Takashi <yamamoto@midokura.com>
2026-04-20 22:15:17 +08:00
openvela-robot 4d6bc89a1f nucleo-h743zi2: refresh the pysim defconfig to fix CI problem
Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
2026-04-20 22:15:13 +08:00
openvela-robot a16cf0bcb8 mm/mempool: update nexpand/ninitial/ninterrupt to xxxsize
Let's specify size instead of number, so that we can unify the size of
expansion memory in the multiple mempool.

Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2026-04-20 22:15:10 +08:00
openvela-robot bc29b464fd sched/spawn: Rename task_spawnattr_[get|set]stack[size|addr] to posix_spawnattr_[get|set]stack[size|addr]
since they can be not only used in task_spawn but also in posix_spawn

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 22:15:06 +08:00
openvela-robot c486a43038 nuttx/sched: use pid to check idle task
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2026-04-20 22:15:03 +08:00
Xiang Xiao c03a20704c sched/spawn: Support task_spawnattr_[set|get]stacksize in kernel mode
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Signed-off-by: chao an <anchao@xiaomi.com>
2026-04-20 22:14:56 +08:00