-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
arch/risc-v: Implement up_this_task using Thread Pointer (TP)
Summary: - Added up_this_task() and up_update_task() macros to use TP register for fast task pointer access - Modified CPU startup and initial state code to initialize TP with task pointer - Updated context save/restore macros to handle TP only when TLS is enabled - Added irq.h include to riscv_cpustart.c for new macros Impact: - Improves performance by using TP for fast task pointer access - Reduces overhead of getting current task pointer in scheduler - Maintains compatibility with TLS configuration - No impact when CONFIG_SCHED_THREAD_LOCAL is enabled - Changes context save/restore behavior for TP Signed-off-by: Huang Qi <[email protected]>
- Loading branch information
Showing
4 changed files
with
40 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters