Commit Graph

16533 Commits

Author SHA1 Message Date
Shell 5796e0d646 feat: arm64: update thread self on sp-switch
This patch improves the atomicity of context switching by ensuring that
the stack pointer (sp) and thread self updates occur simultaneously.
This enhancement is crucial for maintaining thread safety and
preventing potential inconsistencies during context switches.

Changes:
- Modified `cpuport.h` to use `ARM64_THREAD_REG` for thread self access.
- Added an `update_tidr` macro in `context_gcc.S` to streamline thread ID
  updates.
- Adjusted `rt_hw_context_switch_to` and `rt_hw_context_switch` to call
  `update_tidr`, ensuring atomic updates during context switches.
- Cleaned up `scheduler_mp.c` by removing redundant thread self
  assignments.

Signed-off-by: Shell <smokewood@qq.com>
2024-10-11 00:09:01 -04:00
zms123456 906d1caea6
[component][sal]add netgetdev api 2024-10-10 22:40:24 -04:00
yangpeng c9a1245977 [components][dfs][dfs_v1]cat输出实际读取的长度 2024-10-10 17:44:32 -04:00
Yuqiang Wang 9b31631df1
[drivers][spi] Fixed an issue that caused spi bus deadlock in the spi configuration 2024-10-09 21:32:17 -04:00
zhangjing0303 65234401f3
[libcpu][risc-v]remove the redundant "0x" from the printed information when cpu is in exception (#9516)
Remove redundant '0x' from printed output
2024-10-09 15:46:39 +08:00
wumingzi a0415846db
[bsp][ESP32][esp32c3] add spi driver 2024-10-08 18:34:24 -04:00
CYFS 2b281ff0cb
[doxygen][rsoc]add pwm touch can i2c spi driver example for doxygen 2024-10-08 17:57:52 -04:00
zhangjing0303 bf8f7b04b5
[libcpu][risc-v]add README for RV64 2024-10-08 17:56:55 -04:00
Supper Thomas 5f15b5aee4 [action] open action_tools.yml 2024-10-08 17:55:41 -04:00
Supper Thomas 6276ba144b [action] remove debug option 2024-10-08 20:52:38 +08:00
Meco Man 5a18b88657 [stm32-f469][ci] add lvgl 8.3 and 8.4 version checking 2024-10-07 23:13:50 -04:00
sulfurandcu 85bd74640e [Bug] [ymodem] last frame's data_sz issue, fixed. 2024-10-07 23:13:41 -04:00
Meco Man 43a727691d [stm32-l475][ci] add LVGL multi versions checking 2024-10-07 19:05:55 -04:00
Meco Man bc74bea545 [RTduino] support TFT_eSPI demo 2024-10-06 21:04:15 -04:00
Meco Man 36f8f266e9 feat:[drivers][spi] rt_spi_configure 添加互斥保护 2024-10-06 00:02:53 -04:00
wdfk-prog 99503d3ff6 feat:[drivers][spi] rt_spi_bus_configure 添加 -RT_EBUSY 返回值,并增加说明注释 2024-10-06 00:02:53 -04:00
CYFS3 9bcb904a0b [doxygen]add pin driver example for doxygen 2024-10-05 23:33:58 -04:00
Meco Man b6382d2a00 [stm32l475][RTduino] modify macros and files name 2024-10-05 23:33:37 -04:00
zhuzhuzhu ef426851ea
[feat] add pci api,the pci/pcie driver
add pci api,the pci/pcie driver writer can use this to get resource of current device with flag,there are three flag :
1. PCI_BUS_REGION_F_MEM it mean memory space
2. PCI_BUS_REGION_F_IO it mean io space
3. PCI_BUS_REGION_F_PREFETCH it mean prefetchable memory
2024-10-05 02:30:52 -04:00
Meco Man b9c3bdf7eb [lvgl][ci] add lvgl 8.3-latest check 2024-10-04 23:41:11 -04:00
wdfk-prog f28b84aa1f [components][i2c] 修改为debug等级打印 2024-10-04 18:02:36 -04:00
wdfk-prog ff6d5b13f0
[components][ulog] ULOG_OUTPUT_LEVEL未定义时,level_output_info产生警告 2024-10-03 19:19:24 -04:00
hydevcode 6b14e0d220
[ci] enable lvgl latest version checking on stm32f407-rt-spark (#9493) 2024-10-02 11:59:18 -04:00
Supper Thomas 5c6d6bd0cb
[docs](readme)add hellogithub 2024-09-30 23:02:14 -04:00
hydevcode 443d56cfb1
[bsp][airm2m/air105][rsoc] Fix compilation issues with bsp of airm2m/air105 2024-09-30 18:50:15 -04:00
hydevcode 1bf3d79be1
[bsp][w60x][rsoc] Fix compilation issues with bsp of w60x (#9487)
* [bsp][w60x][rsoc] Fix compilation issues with bsp of w60x

* [bsp][w60x][rsoc] Fix compilation issues with bsp of w60x
2024-10-01 06:06:50 +08:00
kurisaw 40da8034a2 [bsp][nxp] Fix nxp series bsp compilation issues 2024-09-30 19:42:54 +08:00
hydevcode 827609be94 [bsp][essemi][rsoc] Fix compilation issues with bsp of essemi series 2024-09-29 20:49:57 -04:00
milo bad2745dd3 fix rtc alarm thread parameters issue 2024-09-29 20:49:35 -04:00
hydevcode 66d54ea8c0
[bsp][nxp][rsoc] Fix compilation issues with bsp of nxp/lxp series 2024-09-29 20:47:39 -04:00
hydevcode e7e44ec7e8 [bsp][nuvoton][rsoc] Fix compilation issues with bsp of nuvoton series 2024-09-29 20:44:38 -04:00
milo e6a3b30993
[dev] make RTC alarm internal thread's attributes configurable 2024-09-29 13:16:18 -04:00
sheltonyu b4b010f4a3 [bsp/at32] update pwm driver 2024-09-29 12:36:19 -04:00
hydevcode 4203bfeb1d
[bsp][mm32l07x][rsoc] Fix compilation issues with bsp of mm32l07x 2024-09-29 12:33:10 -04:00
CYFS d0cf64631a
[bsp][stm32][dosc][rsoc]更新STM32 BSP 制作教程 (#9484)
* [bsp][stm32][dosc]update bsp make

* [bsp][stm32]注明文档中使用的cubemx版本
2024-09-29 08:59:28 +08:00
CYFS 6fb31d486d
[doxygen][rsoc]add dac driver example for doxygen (#9483) 2024-09-29 08:59:17 +08:00
hydevcode 5562779056 [BSP][LVGL]An adaptation that creates a buffer in high or low versions
[bsp][stm32]lvgl creates adaptations of buffers in high or low versions

[BSP][LVGL]An adaptation that creates a buffer in high or low versions,code format modifications

[BSP][LVGL]An adaptation that creates a buffer in high or low versions,code format modifications

[bsp][stm32]lvgl creates adaptations of buffers in high or low versions,code format modifications

[bsp][stm32]lvgl creates adaptations of buffers in high or low versions
2024-09-27 09:58:19 +08:00
hydevcode a98c872934
[bsp][rsoc] remove infinite while loop counting 2024-09-26 18:08:41 -04:00
CYFS 684bcc8d16 [doxygen]add rtc devices example for doxygen 2024-09-26 18:07:40 -04:00
heyuanjie87 caac564854
[bsp] add k230 2024-09-25 22:34:04 -04:00
imcu 633d203fa6 bsp:cvitek:add all function type of pinmux 2024-09-25 21:04:40 -04:00
CYFS d55931493a [doxygen]add dac driver example for doxygen 2024-09-25 21:04:19 -04:00
Shell 588611d314 feat: includes: included kerrno.h in rtdef.h
Those definitions are presented in rtdef.h until PR #9461 moved them to
kerrno.h, which introduced unknown definition error for project building

Changes:

- Added includes of kerrno.h

Signed-off-by: Shell <smokewood@qq.com>
2024-09-25 21:03:48 -04:00
CYFS f4a92e5e86
[doxygen][rsoc] add adc driver example for doxygen (#9465)
* [doxygen] add adc driver example for doxygen

* add data structures
2024-09-25 22:19:53 +08:00
CYFS b4d30064cc
[components] change variable name
为什么提交这份PR (why to submit this PR)
#9397

你的解决方案是什么 (what is your solution)
将 line 758的dir改为link_dir
2024-09-24 20:04:57 -04:00
zhujiale 58055e7584 smp_ipi 2024-09-24 09:56:30 +08:00
zhujiale d037952988 smp 2024-09-24 09:56:30 +08:00
zhujiale d8956e415e smp 2024-09-24 09:56:30 +08:00
zhujiale aafc0ae0f8 smp 2024-09-24 09:56:30 +08:00
zhujiale b206d440c7 smp 2024-09-24 09:56:30 +08:00