This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push: new f44766611af arch/tricore: fix tricore_doirq function local var "regs" not initialized issue f44766611af is described below commit f44766611af4eb42f60a5e4f01923d4079f2f418 Author: wangchengdong <wangchengd...@lixiang.com> AuthorDate: Tue Sep 2 20:42:38 2025 +0800 arch/tricore: fix tricore_doirq function local var "regs" not initialized issue In tricore_doirq, local variable regs is firstly used without initiazlied, this is a bug Signed-off-by: Chengdong Wang <wangchengd...@lixiang.com> --- arch/tricore/src/common/tricore_doirq.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/tricore/src/common/tricore_doirq.c b/arch/tricore/src/common/tricore_doirq.c index 3f83c6ef412..1b43cc1f3f4 100644 --- a/arch/tricore/src/common/tricore_doirq.c +++ b/arch/tricore/src/common/tricore_doirq.c @@ -55,14 +55,14 @@ IFX_INTERRUPT_INTERNAL(tricore_doirq, 0, 255) Ifx_CPU_ICR icr; uintptr_t *regs; + icr.U = __mfcr(CPU_ICR); + regs = (uintptr_t *)__mfcr(CPU_PCXI); + if (*running_task != NULL) { (*running_task)->xcp.regs = regs; } - icr.U = __mfcr(CPU_ICR); - regs = (uintptr_t *)__mfcr(CPU_PCXI); - board_autoled_on(LED_INIRQ); /* Nested interrupts are not supported */