no1wudi opened a new pull request, #15563:
URL: https://github.com/apache/nuttx/pull/15563

   ## 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
   
   ## Testing
   
   GitHub CI and local board with CONFIG_SCHED_THREAD_LOCAL enabled/disabled
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to