zhangyu981027 opened a new pull request, #22560: URL: https://github.com/apache/nuttx/pull/22560
## Summary Prepare TriCore trap, timer, and stack handling for BMP by selecting per-CPU state instead of shared global instances. - Make trap information per-CPU for BMP. - Make the STM oneshot lower-half state per-CPU and initialize each instance. - Select idle and interrupt stacks by CPU while preserving the existing UP behavior. ## Impact The per-CPU accessors reduce to ordinary global state in non-BMP configurations. UP builds continue to use the existing linker-provided idle and interrupt stacks. Non-UP builds use CPU-indexed stack selection and require the platform linker scripts to provide the corresponding per-core `__ustack0..5` and `__istack0..5` symbols; those symbols are not added by this change. BMP multi-core linking and runtime behavior were not validated. ## Testing - Build: `a2g-tc397-5v-tft:nsh` with GCC: pass (1394/1394). - Test: TC397 hello and full ostest: pass; `ostest_main: Exiting with status 0`; no assertion failure. - Build: `triboard_tc4x9_com` with TASKING 10.4: pass (1409/1409). - These results cover the non-BMP single-core UP path and TC4 TASKING compilation only. ```text Hello, World!! PR3-c97345afb3a-20261127 NuttX 13.1.1 c97345afb3a Nov 27 2026 23:29:10 tricore a2g-tc397-5v-tft ostest_main: Exiting with status 0 [1409/1409] Generating System.map ``` -- 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]
