zhangyu-duck opened a new pull request, #17903: URL: https://github.com/apache/nuttx/pull/17903
## Summary Optimize tricore arch task switching process, now most other archs have already implemented task switching optimizations, such as: 1. Directly using `tcb->xcp.regs` instead of `up_current_regs` to determine whether to switch tasks. 2. Removing interfaces like `up_set_current_regs`/`up_current_regs`. 3. Inlining `up_switch_context`, etc. For ARM implementation references: https://github.com/apache/nuttx/commit/03af486d689825bb3f7015c64475877d6c0d014d https://github.com/apache/nuttx/commit/4972a8e02ed64d749243a6f99d436f8e3433a529 ## Impact The logic during doirq.c and svcall.c for determining whether a task needs to be switched has changed; The interrupt flag interface has changed. ## Testing Run ostest multiple times and observe whether the task switch is normal. The main test items in ostest: task create/exit/restart. semaphore wait/post test message queue test signal process test wdog test ... -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
