[rtems commit] rtems: Avoid include of <rtems/score/thread.h>

Sebastian Huber sebh at rtems.org
Mon Nov 12 14:40:31 UTC 2018


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Nov  8 12:05:44 2018 +0100

rtems: Avoid include of <rtems/score/thread.h>

Update #3598.

---

 cpukit/include/rtems/rtems/tasks.h | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/cpukit/include/rtems/rtems/tasks.h b/cpukit/include/rtems/rtems/tasks.h
index e0272e0..3d0b739 100644
--- a/cpukit/include/rtems/rtems/tasks.h
+++ b/cpukit/include/rtems/rtems/tasks.h
@@ -19,7 +19,6 @@
 #define _RTEMS_RTEMS_TASKS_H
 
 #include <rtems/score/scheduler.h>
-#include <rtems/score/thread.h>
 #include <rtems/rtems/attr.h>
 #include <rtems/rtems/status.h>
 #include <rtems/rtems/types.h>
@@ -87,10 +86,12 @@ typedef uint32_t rtems_task_priority;
  */
 #define RTEMS_CURRENT_PRIORITY      PRIORITY_MINIMUM
 
+struct _Thread_Control;
+
 /**
  *  External API name for Thread_Control
  */
-typedef Thread_Control rtems_tcb;
+typedef struct _Thread_Control rtems_tcb;
 
 /**
  *  The following defines the "return type" of an RTEMS task.
@@ -100,7 +101,7 @@ typedef void rtems_task;
 /**
  *  The following defines the argument to an RTEMS task.
  */
-typedef Thread_Entry_numeric_type rtems_task_argument;
+typedef CPU_Uint32ptr rtems_task_argument;
 
 /**
  *  The following defines the type for the entry point of an RTEMS task.




More information about the vc mailing list