summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-09-08 09:53:34 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-09-08 09:55:26 +0200
commit8af1663accfce130d41ba66dd0c27a6294c2debd (patch)
treeca1fc0d6fc305fb6651d487afa9ea0bf6e376fdc
parent275032b85aff0e01f45ae2e5dbb51d3570f50e4f (diff)
downloadrtems-8af1663accfce130d41ba66dd0c27a6294c2debd.tar.bz2
score: Fix for RTEMS_DEBUG
-rw-r--r--cpukit/score/include/rtems/score/mrspimpl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cpukit/score/include/rtems/score/mrspimpl.h b/cpukit/score/include/rtems/score/mrspimpl.h
index c136a2037c..7b859f3c9b 100644
--- a/cpukit/score/include/rtems/score/mrspimpl.h
+++ b/cpukit/score/include/rtems/score/mrspimpl.h
@@ -262,6 +262,7 @@ RTEMS_INLINE_ROUTINE Status_Control _MRSP_Wait_for_ownership(
_Scheduler_Thread_change_help_state( executing, SCHEDULER_HELP_ACTIVE_RIVAL );
rival.status = MRSP_WAIT_FOR_OWNERSHIP;
+ _Chain_Initialize_node( &rival.Node );
_Chain_Append_unprotected( &mrsp->Rivals, &rival.Node );
_Resource_Add_rival( &mrsp->Resource, &executing->Resource_node );
_Resource_Node_set_dependency( &executing->Resource_node, &mrsp->Resource );