summaryrefslogtreecommitdiff
path: root/components
AgeCommit message (Collapse)Author
2024-05-28[OFW] Fixup irq parse map and map mask (#8992)GUI
`map_len` and `map_mask_len` is the count of elements, not the bytes size of elements. Signed-off-by: GuEe-GUI <[email protected]>
2024-05-28[Feature] DFS mount auto by kernel parameters (#8989)GUI
DFS mount auto by kernel parameters 1.Mount the rootfs options by parameters: - root=: root device, like vda1, sda1, sd0p1, nvme0n0p1... - rootfstype=: root file system type, like elm, ext, crom... - rw/ro: root is readonly or all enable, if not have 'rw' flag, the 'ro' flag is default. - rootwait: always wait for root device status is OK. - rootdelay=: mount rootfs delay amount of time (millisecond). 2.Mount the other fs options by `fstab.sh`, it will read the script after root mount is OK, it's format is a list of mount cmds in MSH: mount vda2 /mnt elm mount 192.168.1.1:/ /mnt/remote nfs Signed-off-by: GuEe-GUI <[email protected]>
2024-05-27如果申请空间不足,申请不到合适的空间,需要回收new_rbbwinfenggao
2024-05-27[components][drivers][sd] add uhs-i mode support to sd driverFan YANG
- added SDR50, SDR104 and DDR50 support to SD driver Signed-off-by: Fan YANG <[email protected]>
2024-05-26[libcpu] arm: fixup signal handling (#8988)Shell
Signed-off-by: Shell <[email protected]>
2024-05-26[libcpu] discard rt_current_thread (#8976)Shell
* [libcpu] rv64: discard rt_current_thread * arm: using rt_thread_self to fetch current TCB
2024-05-26[components][drivers][mmc] add HS400 support to mmc driverFan YANG
- added HS400 supprt (both eMMC5.0 and eMMC5.1 flavor are supported) Signed-off-by: Fan YANG <[email protected]>
2024-05-21[component][driver]init dm serial naming framework in a separate phase (#8971)zms123456
init dm serial naming framework in a phase
2024-05-21[quality] fixup compiler warning (#8961)Shell
Signed-off-by: Shell <[email protected]>
2024-05-21[dfsv2] fixup out-of-memory access (#8973)Shell
This change addresses a potential out-of-memory access issue in the devfs filesystem component. The issue arises when the `rt_malloc` function allocates memory for a path string without accounting for the null terminator, leading to undefined behavior. As the manual documented: > DESCRIPTION > The strlen() function calculates the length of the string pointed to > by s, excluding the terminating null byte ('\0'). To fix this, the memory allocation size was increased by one byte to ensure space for the null terminator. This prevents potential out-of-memory access and ensures proper string termination. Signed-off-by: Shell <[email protected]>
2024-05-21[components][driver]add isr statistics (#8955)zms123456
add isr statistics
2024-05-17[smart] select console device dynamically (#8949)Shell
* [smart] select console device dynamically - Fixed compiler warning on terminal subsystem for `components/lwp/terminal/terminal.h` - Updated default console setup to dynamically select an appropriate tty device based on the configured console device name. Signed-off-by: Shell <[email protected]> * fixup: remove useless codes --------- Signed-off-by: Shell <[email protected]>
2024-05-16fix specified network card not taking effect with msh's ping error (#8937)xiao-mang
* fix specified network card not taking effect with msh's ping error * fix specified network card not taking effect with msh's ping error
2024-05-16[drivers][serial]fix error in getting serial_tty settings (#8953)zms123456
fix error in getting serial_tty settings
2024-05-13[drivers][ofw] fix ofw_alias_scan() bug (#8908)liYangYang
* fix ofw_alias_scan() bug * fix tag_len
2024-05-11修复C++11 ↵atwww
thread_local对象析构函数与实际内存释放动作顺序相反问题
2024-05-11[components][drivers]fix compiler error in serial dm (#8927)zms123456
fix compiler error in serial dm
2024-05-11[hrtimer] fixup use-after-free (#8928)Shell
Signed-off-by: Shell <[email protected]>
2024-05-10remove intr disablezhao maosheng
2024-05-10add percpu interrupt infozhao maosheng
2024-05-10[smart] fixup arm64 aspace switch (#8925)Shell
* [smart] fixup arm64 aspace switch Signed-off-by: Shell <[email protected]> * fixup: arm add arch_kernel_mmu_table_get --------- Signed-off-by: Shell <[email protected]>
2024-05-09fix_serial_baudrate_setgeniusgogo
2024-05-08[ipc] support of lockless rt_completion (#8887)Shell
* [ipc] lockless rt_completion implementation The new rt_completion implemented by lockless algorithm can improve timer resolution for up to ~12%, compare to sem IPC. Signed-off-by: Shell <[email protected]> * fixup: error * remove useless changes --------- Signed-off-by: Shell <[email protected]>
2024-05-08[libcpu/arm64] dealing with mem region out of kernel space (#8847)Shell
* [ofw] dealing with mem region out of kernel space - Fix parameter checking in _out_of_range() that NULL is excluded for fixed mapping - Split page install with a deferred stage to avoid mapping over ARCH_EARLY_MAP_SIZE Signed-off-by: Shell <[email protected]> * fixup: restrict vstart for using of RT_NULL --------- Signed-off-by: Shell <[email protected]>
2024-05-07fix_serial_baudrate_setgeniusgogo
Signed-off-by: geniusgogo <[email protected]>
2024-05-01[kernel] add rt_thread_close()Shell
* [thread] Add rt_thread_close() This patch introduces a new function `rt_thread_close()` to enhances the usability and maintainability by providing a dedicated mechanism for closing threads. - A new function `rt_thread_close()` is added to the API, providing a standardized approach for closing threads. - The `rt_thread_close()` function removes a thread from the thread queue, updates its status to indicate closure, and performs the thread timer detaching which is a embedded timer in thread object. - Additionally, the `rt_thread_detach()` function is modified to utilize `rt_thread_close()` internally, streamlining the thread detachment process. Signed-off-by: Shell <[email protected]>
2024-04-30Add comments for all functions in components/libc/posix/ipc/mqueue.cTroy
2024-04-29[i2c] adjust the timing for I2C initializationLZerro
2024-04-29[components][drivers] added sensor device lookup functionyiyi
2024-04-29fix baudrate error (#8873)xiao-mang
* fix baudrate error * fix baudrate error * fix baudrate error * fix baudrate error * fix baudrate error * fix baudrate error * fix baudrate error * fix baudrate error * fix baudrate error
2024-04-28fix file mmap (#8865)xiao-mang
2024-04-27[drivers][ofw] Fixed fdt_scan_memory() memory adjustment bug (#8853)liYangYang
* Fixed fdt memory adjustment bug * Modify the memory adjustment logic
2024-04-26Add comments for all functions in components/libc/posix/io/termios/termios.cTroy
2024-04-25fix sys_getcwd (#8852)xiao-mang
2024-04-25[components][dfs]remove duplicate lseek in devfs (#8859)zms123456
remove duplicate lseek in devfs
2024-04-25[smart] fix tty serial ioctl (#8861)Shell
Using param callback to reduce unnecessary call. Signed-off-by: Shell <[email protected]>
2024-04-24Add some comments in components/libc/posix/ipc/semaphore.c (#8848)Troy
2024-04-22[ipc] [dataqueue] 修复队列 pop 挂起的线程 push ↵sp-cai
无法恢复运行的错误 (#8839) 队列在 push 后查找挂起列表时使用了错误的挂起列表。
2024-04-22[components][drivers]improve ktimer sleep (#8838)zms123456
improve ktimer sleep
2024-04-21[clang-format] ↵latercomer
增加clang-format格式化配置,通过ide或者手动运行tools/run-clang-format.py进行代码自动格式化
2024-04-20[smart] fixup rt_hw_serial_unregister_tty of serial ttyShell
Mutex lock should be taken before release the TTY device. Signed-off-by: Shell <[email protected]>
2024-04-19解决LOG_RAW异步输出多条文本的时候会被截断,原因是rt_vsn ↵latercomer
printf会在字符串最后添加\0,ulog.c中的do_output()将\0也压入到ulog.async_rb,当LOG_RAW没有及时输出,那么rb中的字符串被\0截断了,导致没法正确输出LOG_RAW信息
2024-04-19fix for art-pi smartxiao-mang
2024-04-19fix for art-pi smartxiao-mang
2024-04-19fix chdir for ash's cd (#8824)xiao-mang
2024-04-18Increased the limit on the number of messageszmq
2024-04-16[components][drivers]delete nonexist include filezms123456
2024-04-16[components][drivers]fix some uninitialize err (#8806)zms123456
fix some uninitialize err
2024-04-15[component][driver][serial/tty]using serial name to name ttyzms123456
当使用新device model时,serial的名字由系统分配,id也由系统分配,此时应根据系统分配的serial id来作为serial-tty的id
2024-04-15[components][drivers]close can irq before release fifozms123456
原来的CAN close中先释放fifo后关闭CAN中断,可能导致释放fifo后且关闭CAN中断前来CAN中断,此时rt_hw_can_isr可能在RT_ASSERT(tx/rx_fifo != RT_NULL)断言失败