[PATCH] score: Fix for RTEMS_DEBUG.

Chris Johns chrisj at rtems.org
Fri Jul 29 00:29:57 UTC 2016


---
 cpukit/score/src/userextaddset.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cpukit/score/src/userextaddset.c b/cpukit/score/src/userextaddset.c
index 19bbd36..ea2d214 100644
--- a/cpukit/score/src/userextaddset.c
+++ b/cpukit/score/src/userextaddset.c
@@ -29,6 +29,7 @@ void _User_extensions_Add_set(
   ISR_lock_Context lock_context;
 
   _User_extensions_Acquire( &lock_context );
+  _Chain_Initialize_node( &the_extension->Node );
   _Chain_Append_unprotected(
     &_User_extensions_List.Active,
     &the_extension->Node
@@ -46,6 +47,7 @@ void _User_extensions_Add_set(
       the_extension->Callouts.thread_switch;
 
     _Per_CPU_Acquire_all( level );
+    _Chain_Initialize_node( &the_extension->Switch.Node );
     _Chain_Append_unprotected(
       &_User_extensions_Switches_list,
       &the_extension->Switch.Node
-- 
2.4.6



More information about the devel mailing list