zhangyu-duck opened a new pull request, #21355: URL: https://github.com/apache/nuttx/pull/21355
*Note: Please adhere to [Contributing Guidelines](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md).* ## Summary TriCore interrupt context and interrupt masking rework: - use PSW.IS instead of g_interrupt_context to determine interrupt context (relies on the independent interrupt stack) - do not use up_interrupt_context() in the trap handler, which is already in interrupt context - use ICR.CCPN threshold masking instead of ICR.IE when CONFIG_ARCH_HIPRI_INTERRUPT is enabled (similar to ARM BASEPRI), so high-priority interrupts above the threshold remain unmasked ## Impact TriCore only (arch/tricore). g_interrupt_context and up_set_interrupt_context() are removed; up_interrupt_context() now reads PSW.IS. TC1V6/TC1V8 now select ARCH_HAVE_HIPRI_INTERRUPT and ARCH_HAVE_IRQPRIO to enable the CCPN-based masking. No changes to common code or other architectures. ## Testing Built triboard_tc4x9_com:nsh (TC4xx, cmake) and a2g-tc397-5v-tft:nsh (TC3xx) with tricore-elf-gcc on Ubuntu host. Each commit passes checkpatch and builds on its own. Tested on both TC4xx (TC4x9) and TC3xx (TC397) boards: system boots normally and ostest passes. ``` nsh> uname -a NuttX 13.1.0 4dc24a224c8 Nov 2 2026 18:21:24 tricore triboard_tc4x9_com nsh> ostest ... ostest_main: Exiting with status 0 ``` -- 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]
