[rtems commit] score: Fix for RTEMS_DEBUG

Sebastian Huber sebh at rtems.org
Wed Aug 3 11:57:54 UTC 2016


Module:    rtems
Branch:    master
Commit:    ec735c6a76a6848ccfbd33a4e1640232a126d05f
Changeset: http://git.rtems.org/rtems/commit/?id=ec735c6a76a6848ccfbd33a4e1640232a126d05f

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Aug  3 13:27:13 2016 +0200

score: Fix for RTEMS_DEBUG

---

 cpukit/rtems/src/tasksetscheduler.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cpukit/rtems/src/tasksetscheduler.c b/cpukit/rtems/src/tasksetscheduler.c
index 0ff74d9..3546e6f 100644
--- a/cpukit/rtems/src/tasksetscheduler.c
+++ b/cpukit/rtems/src/tasksetscheduler.c
@@ -44,6 +44,7 @@ rtems_status_code rtems_task_set_scheduler(
     return RTEMS_INVALID_PRIORITY;
   }
 
+  _Thread_queue_Context_initialize( &queue_context );
   the_thread = _Thread_Get( task_id, &queue_context.Lock_context );
 
   if ( the_thread == NULL ) {



More information about the vc mailing list