summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Doerfler <Thomas.Doerfler@embedded-brains.de>2008-05-27 10:31:22 +0000
committerThomas Doerfler <Thomas.Doerfler@embedded-brains.de>2008-05-27 10:31:22 +0000
commit0868844e5e18dbafbb43a9359dbe343362e039eb (patch)
treed1e7ba42b49926023bb025d750c97a61c5e1586c
parent1e642c6c1d4f57c48e995db6b8add7e31a2809c7 (diff)
downloadrtems-0868844e5e18dbafbb43a9359dbe343362e039eb.tar.bz2
Added new defines OBJECTS_ID_NONE
and RTEMS_ID_NONE. No object can have this ID.
Diffstat (limited to '')
-rw-r--r--cpukit/rtems/include/rtems/rtems/types.h3
-rw-r--r--cpukit/score/include/rtems/score/object.h5
2 files changed, 8 insertions, 0 deletions
diff --git a/cpukit/rtems/include/rtems/rtems/types.h b/cpukit/rtems/include/rtems/rtems/types.h
index d8005cf3c2..7b5eb9e213 100644
--- a/cpukit/rtems/include/rtems/rtems/types.h
+++ b/cpukit/rtems/include/rtems/rtems/types.h
@@ -50,8 +50,11 @@ typedef double_precision rtems_double; /* double precision float */
typedef boolean rtems_boolean;
typedef uint32_t rtems_name;
+
typedef Objects_Id rtems_id;
+#define RTEMS_ID_NONE OBJECTS_ID_NONE
+
typedef Context_Control rtems_context;
typedef Context_Control_fp rtems_context_fp;
typedef CPU_Interrupt_frame rtems_interrupt_frame;
diff --git a/cpukit/score/include/rtems/score/object.h b/cpukit/score/include/rtems/score/object.h
index 9a7963e4bd..1097e27b77 100644
--- a/cpukit/score/include/rtems/score/object.h
+++ b/cpukit/score/include/rtems/score/object.h
@@ -388,6 +388,11 @@ SCORE_EXTERN Objects_Information
**_Objects_Information_table[OBJECTS_APIS_LAST + 1];
/**
+ * No object can have this ID.
+ */
+#define OBJECTS_ID_NONE 0
+
+/**
* The following defines the constant which may be used
* with _Objects_Get to manipulate the calling task.
*/