summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2022-11-14[kernel] 优化Sconscript脚本Meco Man
2022-11-14[kernel] 修正复制name字段时潜在的内存踩踏问题Meco Man
2022-11-06Merge pull request #6523 from BernardXiong/nested_mutexBernard Xiong
[Kernel] Add nested mutex feature
2022-11-05[update]更正 RT_MEMHEAP_BSET_MODE -> RT_MEMHEAP_BEST_MODE 拼写错误。liangyingjian
2022-10-25Update src/ipc.cMan, Jianting (Meco)
2022-10-19[bsp][c28x] add support to not disable global interrupt in context-switch to ↵Yunjie Gu
enable zero-latency isr for critical interrupts.
2022-10-17[Kernel] Remove the debug definition for mutexBernard Xiong
2022-10-16[Kernel] Trim trailing spaces in ipc.cBernard Xiong
2022-10-16[Kernel] Add prioceiling feature in mutexBernard Xiong
2022-10-15[Kernel] Add nested mutex featureBernard Xiong
2022-10-08remove unused code to improve speedFrank Buss
The RT_ASSERT(obj != object) line is only compiled for debug mode. But the rt_enter/exit_critical causes the compiler not to optimize at least these 2 calls, even if it could optimize out the whole loop, because the rt_list_entry function has no side effect, and RT_ASSET is a no-operation in release mode. So this patch fixes this: - no warnings anymore - better speed in release mode
2022-09-27修复低概率终端无法输入问题 (#6464)Tangyuxin
* [ulog] Fix the problem that the terminal cannot input * [mem] Fix NULL pointer access
2022-09-20[fix] Fix simulator compilation warnings (#6438)Tangyuxin
* [fix] Fix simulator compilation warnings * Update bsp/simulator/rtconfig_project.h Co-authored-by: Man, Jianting (Meco) <[email protected]>
2022-09-19[memheap] Fix the Oz optimization problem of AC6 compilertangyuxin
2022-09-07[kernel][version] 采用新的版本宏定义Meco Man
版本控制规范:https://semver.org/ 目前的版本子号不是很规范,其中RT_VERSION甚至和VS那边造成了冲突 ```c /* RT-Thread version information */ #define RT_VERSION 4L /**< major version number */ #define RT_SUBVERSION 1L /**< minor version number */ #define RT_REVISION 1L /**< revise version number */ ``` 参考ESP32: ```c /** Major version number (X.x.x) */ #define ESP_ARDUINO_VERSION_MAJOR 2 /** Minor version number (x.X.x) */ #define ESP_ARDUINO_VERSION_MINOR 0 /** Patch version number (x.x.X) */ #define ESP_ARDUINO_VERSION_PATCH 3 ``` 建议改成: ```c /* Major version number (X.x.x) */ #define RT_VERSION_MAJOR 4 /* Minor version number (x.X.x) */ #define RT_VERSION_MINOR 2 /* Patch version number (x.x.X) */ #define RT_VERSION_PATCH 0 ```
2022-09-02[kservice] 增加printf格式2进制和8进制,RT_KPRINTF_USING_LONGLONG ↵winfenggao
和 RT_PRINTF_SPECIAL 做了相应处理 (#6361) * 增加printf格式2进制和8进制,RT_KPRINTF_USING_LONGLONG 和 RT_PRINTF_SPECIAL 做了相应处理
2022-08-31[kservice][ti c28x]rt_vsnprintf (#6349)Yunjie Gu
2022-08-31[kernel] 当tick为0时rt_thread_sleep不应该挂起线程Ylne
2022-08-31[kernel] 为rt_thread_sleep添加上下文检查Ylne
2022-08-29tms320f28379d fix init (#6343)YuQi
解决 tms320f28379d bsp 启动的问题。主要改动如下。 修正context.s中汇编代码错误。在旧版的代码中,操作数为32位而汇编命令却使用了针对16位数据的命令MOV,导致程序在某些情况无法正常启动线程。 由于C28x的平台下,SP只支持16bit寻址,所以用于线程空间存放的heap以及ebss段都需要放在低16位的空间,针对这个问题修改了CMD文件。此外还增加基于CMD文件基于RAM的支持,方便调试。 新增rtdef.h中RT_SECTION,RT_USED,ALIGN和RT_WEAK的定义。旧版bsp中这些定义为空,导致INIT_EXPORT注册的函数失效。 修改程序启动代码,在程序入口直接调用原生启动代码 以上改动在LAUNCHXL-F28379D 通过了测试。
2022-08-28change version number to v5.0.0 (#6291)Man, Jianting (Meco)
2022-08-25[kernel] 优化内置线程命名Meco Man
main线程栈指定对齐字节数
2022-08-24[kernel] 修复 rt_memset 使其 word size independent.Yunjie Gu
For compatibility with 16bit addressing 32bit CPU (e.g. TI C28x).
2022-08-20[bsp][tms320f28379d] Fix compile ti (#6254)Yunjie Gu
* compile_ok Issues fixed: (1) update .config: select FINSH_USING_SYMTAB (2) add rt_size_t in rtconfig_project.h (3) fix finsh problems of using sym table (4) update .project to include ipc source codes. Todo list: (1) automate the build source selection of ccs and reconcile it with scons * change compiler * msh can run now the key step is to swap the order of rt_interrupt_nest -- and RT_OBJECT_HOOK_CALL(rt_interrupt_leave_hook,()) in irq.c. This is an improvised solution and an issue has been raised. * Update 2837x_FLASH_lnk_cpu1.cmd The original one is also fine. Just to make it more rigorous since FSymTab is in data section. * update readme.md Complier selection and maintainer update. Co-authored-by: YuQi <[email protected]>
2022-08-16[kernel/schedule] fix the time slice issueblta
2022-08-14[kservice] 增加换行符Meco Man
2022-08-07[fix] the risk for function exit() when open pthread support. (#6229)xiangxistu
* [fix] the risk for function exit() when open pthread support. * [update] modify annotation from "user data" to "pthread_data".
2022-08-02Fix some compilation warning (#5744)dongly
* Fix some compilation warning * 补充修正一些数据类型的使用错误 Co-authored-by: Meco Man <[email protected]>
2022-06-29[enhancement] Add string information for error (#3186)a1012112796
* [enhancement]Add string information for error * Update src/kservice.c * Update src/kservice.c Co-authored-by: Man, Jianting (Meco) <[email protected]> * remove %m Signed-off-by: a1012112796 <[email protected]> Co-authored-by: Meco Man <[email protected]>
2022-06-22[kernel][mem.c] tighten size before check with mem_size_alignedrewine
2022-06-13[kservice] add NULL check for rt_free and rt_free_align.朱天龙 (Armink)
2022-06-08attach: remove strnlen #6026Meco Man
2022-06-02[fix] remove the executable permission of thread.c (#6001)Jianhui Zhao
Signed-off-by: Jianhui Zhao <[email protected]>
2022-05-28[kernel][timer] fixed bug (#6004)HubretXie
2022-05-18[modify] the recycle logic about resource of pthread.liuxianliang
2022-04-29[kernel] update comments for rt_thread_suspend (#5887)Man, Jianting (Meco)
* [kernel] update comments for rt_thread_suspend
2022-04-29[kernel] beautify code (#5890)Man, Jianting (Meco)
2022-04-29[kernel] rename _rt_scheduler_stack_check as _scheduler_stack_check (#5889)Man, Jianting (Meco)
2022-04-29[kernel] remove the register keyword (#5888)Man, Jianting (Meco)
2022-04-21correct descriptions (#5849)Stanley
* correct descriptions correct descriptions in ipc.c and timer.c Co-authored-by: Stanley <[email protected]>
2022-04-20modify version to v4.1.1 (#5847)Man, Jianting (Meco)
2022-04-20uniform code writing-disable interruptthewon86
2022-04-19[kernel] enable RT_DEBUG_DEVICE by default and move weak rt_hw_dealy_us in ↵Meco Man
kservice.c
2022-04-15Fix/parameter name (#5815)Stanley
* Update ipc.c Parameter name standardization Co-authored-by: Stanley <[email protected]>
2022-04-11Update ipc.cStanley
Resolved feedbacks
2022-04-11Add descriptionsStanley
dd descriptions for rt_mq_recv and rt_sem_take timeout parameters
2022-04-09[kconfig] add 64bit default value for stack size. set tick HZ as 1000 by ↵Man, Jianting (Meco)
default (#5778) * [kconfig] add 64bit default value for stack size. set tick HZ as 1000 by default * 用RT_KSERVICE_USING_STDLIB_MEMXXX代替RT_KSERVICE_USING_STDLIB_MEMCP/MEMSET 将RT_KSERVICE_USING_STDLIB设置为默认开启 * 优化rt_kprintf支持longlong的能力,默认在64位CPU为开启状态 RT_PRINTF_LONGLONG命名不规范,更改为RT_KPRINTF_USING_LONGLONG * fix commit error * fix error * 优化 system 函数 * RT_KSERVICE_USING_STDLIB_MEMXXX->RT_KSERVICE_USING_STDLIB_MEMORY
2022-03-27[device.c] fix the comment, add RT_DEBUG_LOGMeco Man
2022-03-21[kservice] Fix 64 bit compilation warning (#5649)Tangyuxin
2022-03-17[kernel] Revert modifications to the semaphore (#5682)guo