[rtems commit] score: Add capture data to tcb.

Jennifer Averett jennifer at rtems.org
Tue Oct 28 15:17:52 UTC 2014


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

Author:    Jennifer Averett <jennifer.averett at oarcorp.com>
Date:      Mon Sep  8 09:46:43 2014 -0500

score: Add capture data to tcb.

---

 cpukit/score/include/rtems/score/thread.h |    7 +++++++
 cpukit/score/src/threadinitialize.c       |    3 +++
 2 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/cpukit/score/include/rtems/score/thread.h b/cpukit/score/include/rtems/score/thread.h
index 456df35..299bac6 100644
--- a/cpukit/score/include/rtems/score/thread.h
+++ b/cpukit/score/include/rtems/score/thread.h
@@ -533,6 +533,11 @@ typedef struct {
 #endif
 } Thread_Scheduler_control;
 
+typedef struct  {
+  uint32_t      flags;
+  void *        control;
+}Thread_Capture_control;
+
 /**
  *  This structure defines the Thread Control Block (TCB).
  */
@@ -645,6 +650,8 @@ struct Thread_Control_struct {
    */
   Thread_Life_control                   Life;
 
+  Thread_Capture_control                Capture;
+
   /**
    * @brief Variable length array of user extension pointers.
    *
diff --git a/cpukit/score/src/threadinitialize.c b/cpukit/score/src/threadinitialize.c
index e56e4e6..508636f 100644
--- a/cpukit/score/src/threadinitialize.c
+++ b/cpukit/score/src/threadinitialize.c
@@ -228,6 +228,9 @@ bool _Thread_Initialize(
   the_thread->Life.state = THREAD_LIFE_NORMAL;
   the_thread->Life.terminator = NULL;
 
+  the_thread->Capture.flags = 0;
+  the_thread->Capture.control = NULL;
+
   /*
    *  Open the object
    */



More information about the vc mailing list