[rtems commit] score: Fix for RTEMS_DEBUG
Sebastian Huber
sebh at rtems.org
Thu Sep 8 07:56:06 UTC 2016
Module: rtems
Branch: master
Commit: 8af1663accfce130d41ba66dd0c27a6294c2debd
Changeset: http://git.rtems.org/rtems/commit/?id=8af1663accfce130d41ba66dd0c27a6294c2debd
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Sep 8 09:53:34 2016 +0200
score: Fix for RTEMS_DEBUG
---
cpukit/score/include/rtems/score/mrspimpl.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/cpukit/score/include/rtems/score/mrspimpl.h b/cpukit/score/include/rtems/score/mrspimpl.h
index c136a20..7b859f3 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 );
More information about the vc
mailing list