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


The following commit(s) were added to refs/heads/master by this push:
     new cbe13affa19 arch/tricore: initialize spinlock used by tricore systimer
cbe13affa19 is described below

commit cbe13affa191ff70212a9cc7e71e839945c93a40
Author: donghaokun <[email protected]>
AuthorDate: Wed Feb 11 16:23:35 2026 +0800

    arch/tricore: initialize spinlock used by tricore systimer
    
    Add explicit spin_lock_init in tricore_systimer_initialize() for the lock 
used by tricore systimer.
    
    Signed-off-by: Haokun Dong <[email protected]>
---
 arch/tricore/src/common/tricore_systimer.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/tricore/src/common/tricore_systimer.c 
b/arch/tricore/src/common/tricore_systimer.c
index 17047b9f29f..b0f8df1ebb9 100644
--- a/arch/tricore/src/common/tricore_systimer.c
+++ b/arch/tricore/src/common/tricore_systimer.c
@@ -303,6 +303,7 @@ tricore_systimer_initialize(volatile void *tbase, int irq, 
uint64_t freq)
   struct tricore_systimer_lowerhalf_s *priv = &g_tricore_oneshot_lowerhalf;
 
   priv->tbase = tbase;
+  spin_lock_init(&priv->lock);
 
   ASSERT(freq <= UINT32_MAX);
 

Reply via email to