[rtems commit] score: Fix for RTEMS_DEBUG.
Chris Johns
chrisj at rtems.org
Mon Aug 1 07:54:20 UTC 2016
Module: rtems
Branch: master
Commit: db6a6375e14e5b5e30574a10f77e92e83c29e79c
Changeset: http://git.rtems.org/rtems/commit/?id=db6a6375e14e5b5e30574a10f77e92e83c29e79c
Author: Chris Johns <chrisj at rtems.org>
Date: Fri Jul 29 10:29:23 2016 +1000
score: Fix for RTEMS_DEBUG.
---
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
More information about the vc
mailing list