RT-Thread / rt-thread

RT-Thread is an open source IoT Real-Time Operating System (RTOS).
https://www.rt-thread.io
Apache License 2.0
10.55k stars 5.03k forks source link

feat: arm64: update thread self on sp-switch #9466

Closed polarvid closed 1 month ago

polarvid commented 1 month ago

拉取/合并请求描述:(PR description)

[

为什么提交这份PR (why to submit this PR)

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.

你的解决方案是什么 (what is your solution)

Changes:

请提供验证的bsp和config (provide the config and bsp)

]

当前拉取/合并请求的状态 Intent for your PR

必须选择一项 Choose one (Mandatory):

代码质量 Code Quality:

我在这个拉取/合并请求中已经考虑了 As part of this pull request, I've considered the following: