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

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

commit 4d2c4cfc2046a919ef216859d9fdfa215adb6b74
Author: zhangyuan29 <[email protected]>
AuthorDate: Wed Aug 12 23:15:56 2026 +0800

    arch/tricore: shrink SRPN mapping table element type
    
    The g_srpn_to_irq table stores IRQ numbers. Declare its elements as irq_t 
instead of int to reduce memory usage without truncating IRQ values.
    
    Signed-off-by: zhangyuan29 <[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 1693815888a..ccafe9ab074 100644
--- a/arch/tricore/src/common/tricore_irq.c
+++ b/arch/tricore/src/common/tricore_irq.c
@@ -71,7 +71,7 @@ static inline void tricore_color_intstack(void)
  * Private Data
  ****************************************************************************/
 
-static int g_srpn_to_irq[TRICORE_IRQ_MAX_PRIORITY + 1];
+static irq_t g_srpn_to_irq[TRICORE_IRQ_MAX_PRIORITY + 1];
 static spinlock_t g_irqlock = SP_UNLOCKED;
 
 /****************************************************************************

Reply via email to