cpukit/rtems: Set the timer's chain node to off chain before appending

The timer's node is shared with the RB tree and before placing it on the
timer server's chain the node needs to set to off chain or
RTEMS_DEBUG may assert.
This commit is contained in:
Chris Johns
2026-03-16 16:37:49 +11:00
committed by Kinsey Moore
parent 87cf29708f
commit 5a16f9dd50

View File

@@ -86,6 +86,7 @@ void _Timer_server_Routine_adaptor( Watchdog_Control *the_watchdog )
cpu = _Watchdog_Get_CPU( &the_timer->Ticker );
the_timer->stop_time = _Timer_Get_CPU_ticks( cpu );
wakeup = _Chain_Is_empty( &ts->Pending );
_Chain_Set_off_chain( &the_timer->Ticker.Node.Chain );
_Chain_Append_unprotected( &ts->Pending, &the_timer->Ticker.Node.Chain );
_Timer_server_Release( ts, &lock_context );