[PATCH 2/5] score: Add capture data to tcb.
Jennifer Averett
jennifer.averett at oarcorp.com
Mon Sep 22 14:00:07 UTC 2014
---
cpukit/score/include/rtems/score/thread.h | 7 +++++++
cpukit/score/src/threadinitialize.c | 3 +++
2 files changed, 10 insertions(+)
diff --git a/cpukit/score/include/rtems/score/thread.h b/cpukit/score/include/rtems/score/thread.h
index be35789..59e0f9e 100644
--- a/cpukit/score/include/rtems/score/thread.h
+++ b/cpukit/score/include/rtems/score/thread.h
@@ -537,6 +537,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).
*/
@@ -649,6 +654,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..6c1ab36 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
*/
--
1.8.1.4
More information about the devel
mailing list