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
commit 9685403038fc36013b98fab2572dfaa6afd45e60 Author: zhangyu117 <[email protected]> AuthorDate: Tue Apr 22 11:32:42 2025 +0800 arch/tricore: modify gpsr init process for some chips like tc4xx there also corecs, so need init it too. Signed-off-by: zhangyu117 <[email protected]> --- arch/tricore/src/common/tricore_irq.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/tricore/src/common/tricore_irq.c b/arch/tricore/src/common/tricore_irq.c index de4faeb1993..f7466bea9a7 100644 --- a/arch/tricore/src/common/tricore_irq.c +++ b/arch/tricore/src/common/tricore_irq.c @@ -87,6 +87,8 @@ static void tricore_gpsrinitialize(void) volatile Ifx_SRC_SRCR *src = &SRC_GPSR00 + up_cpu_index(); int i; + /* Cpux gpsr init */ + for (i = 0; i < 6; i++) { #ifdef CONFIG_ARCH_TC3XX @@ -100,6 +102,15 @@ static void tricore_gpsrinitialize(void) src += TRICORE_SRCNUM_PER_GPSR; } + + /* Cpucs gpsr init */ + +#ifndef CONFIG_ARCH_TC3XX + src = &SRC_GPSR6_SR0 + up_cpu_index(); + IfxSrc_init(src, IfxSrc_Tos_cpu0 + up_cpu_index(), + IRQ_TO_NDX(TRICORE_SRC2IRQ(src)), + IfxSrc_VmId_none); +#endif } #endif
