This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit fbc681807db0d5347f6a91fe4ad9926440da992f
Author: Saravanan Sekar <[email protected]>
AuthorDate: Sat Nov 21 18:36:03 2026 +0530

    arch/tricore: Set up the GPSR groups of the used CPUs only.
    
    tricore_gpsrinitialize sets up the general purpose service request group
    of six CPUs, which fits the TC39x and the TC4Dx.  Smaller parts have
    fewer CPUs and GPSR groups, the TC37x for example three, and writing the
    service request control register of a missing group raises a bus error
    trap at boot.  Only the CPUs that run NuttX raise GPSR requests, so set
    up the groups of CONFIG_NCPUS CPUs.
    
    Signed-off-by: Saravanan Sekar <[email protected]>
---
 arch/tricore/src/common/tricore_irq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/tricore/src/common/tricore_irq.c 
b/arch/tricore/src/common/tricore_irq.c
index 1144d33ce57..97082287ef0 100644
--- a/arch/tricore/src/common/tricore_irq.c
+++ b/arch/tricore/src/common/tricore_irq.c
@@ -118,7 +118,7 @@ static void tricore_gpsrinitialize(void)
 
   /* Cpux gpsr init */
 
-  for (i = 0; i < 6; i++)
+  for (i = 0; i < CONFIG_NCPUS; i++)
     {
       int irq = TRICORE_GPSR_IRQNUM(i, cpu);
 

Reply via email to