zhangyu-duck opened a new pull request, #21309: URL: https://github.com/apache/nuttx/pull/21309
*Note: Please adhere to [Contributing Guidelines](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md).* ## Summary Drop the iLLD dependence of the TriCore irq and core register code: - add the full 255-entry BIV interrupt vector table; each entry is a 32-byte aligned code slot that saves context and jumps to the handler, SRPN 1 routes to taskswitch and SRPN 2~255 to the fast direct path - define the core SFRs (PCXI/PSW/PC/SYSCON/CORE_ID/ICR/PPRS/FCX/LCX, CCTRL/CCNT), trap status registers and MPU registers in NuttX headers instead of the iLLD IfxCpu_* headers; tricore_systimer.c uses CONFIG_CPU_CLOCK_FREQUENCY instead of its local IFX_CFG_CPU_CLOCK_FREQUENCY - access the SRC and INT registers directly instead of IfxSrc/IfxCpu/IfxInt: add the SRC bit layout (different between TC3xx and TC4xx) and INT LASR base addresses to tc3xx/tc4xx irq.h, add tricore_src_init(), and use the disable/restore/enable instructions directly Code that still talks to iLLD drivers directly (tricore_main.c, tricore_systimer.c, chip serial) includes the iLLD headers itself. This also removes the IFX_CFG_CPU_CLOCK_FREQUENCY redefinition warning in the cmake build. ## Dependency Depends on the irq pr3 PR (zhangyu-duck:tricore_irq_pr3). This branch is stacked on top of it, so it also contains the commits of the dependent PR(s); only the last 3 commit(s) belong to this PR: - arch/tricore: fully implement 255 interrupt tables - arch/tricore: drop the last illd headers and define registers ourselves - arch/tricore: drop illd dependence for irq ## Impact TriCore architecture only (arch/tricore). No functional change intended; the irq path no longer depends on iLLD. No impact on other architectures. ## Testing Built triboard_tc4x9_com:nsh (TC4xx, cmake) and a2g-tc397-5v-tft:nsh (TC3xx, both make and cmake) 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 eb4b5fd60ba Oct 31 2026 21:35:02 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]
