summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-11-08 09:03:47 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-11-12 13:25:39 +0100
commit257cf743a5c69f9dd302fe31d99978f84970ad64 (patch)
treed00344ec2a6de3dcdbdc5929b02a253c984609d9
parentrtems: Move internal structures to ratemondata.h (diff)
downloadrtems-257cf743a5c69f9dd302fe31d99978f84970ad64.tar.bz2
rtems: Move internal structures to asrdata.h
Update #3598.
-rw-r--r--cpukit/headers.am1
-rw-r--r--cpukit/include/rtems/rtems/asr.h19
-rw-r--r--cpukit/include/rtems/rtems/asrdata.h58
-rw-r--r--cpukit/include/rtems/rtems/asrimpl.h2
-rw-r--r--cpukit/include/rtems/rtems/tasks.h2
5 files changed, 61 insertions, 21 deletions
diff --git a/cpukit/headers.am b/cpukit/headers.am
index 6e2b690cd5..6210ba9153 100644
--- a/cpukit/headers.am
+++ b/cpukit/headers.am
@@ -223,6 +223,7 @@ include_rtems_rfs_HEADERS += include/rtems/rfs/rtems-rfs-link.h
include_rtems_rfs_HEADERS += include/rtems/rfs/rtems-rfs-mutex.h
include_rtems_rfs_HEADERS += include/rtems/rfs/rtems-rfs-trace.h
include_rtems_rtems_HEADERS += include/rtems/rtems/asr.h
+include_rtems_rtems_HEADERS += include/rtems/rtems/asrdata.h
include_rtems_rtems_HEADERS += include/rtems/rtems/asrimpl.h
include_rtems_rtems_HEADERS += include/rtems/rtems/attr.h
include_rtems_rtems_HEADERS += include/rtems/rtems/attrimpl.h
diff --git a/cpukit/include/rtems/rtems/asr.h b/cpukit/include/rtems/rtems/asr.h
index edd5e2fe62..b2fa02ce9e 100644
--- a/cpukit/include/rtems/rtems/asr.h
+++ b/cpukit/include/rtems/rtems/asr.h
@@ -57,25 +57,6 @@ typedef rtems_asr ( *rtems_asr_entry )(
rtems_signal_set
);
-/**
- * The following defines the control structure used to manage
- * signals. Each thread has a copy of this record.
- */
-typedef struct {
- /** This field indicates if are ASRs enabled currently. */
- bool is_enabled;
- /** This field indicates if address of the signal handler function. */
- rtems_asr_entry handler;
- /** This field indicates if the task mode the signal will run with. */
- Modes_Control mode_set;
- /** This field indicates the signal set that is posted. */
- rtems_signal_set signals_posted;
- /** This field indicates the signal set that is pending. */
- rtems_signal_set signals_pending;
- /** This field indicates if nest level of signals being processed */
- uint32_t nest_level;
-} ASR_Information;
-
/*
* The following constants define the individual signals which may
* be used to compose a signal set.
diff --git a/cpukit/include/rtems/rtems/asrdata.h b/cpukit/include/rtems/rtems/asrdata.h
new file mode 100644
index 0000000000..1068bc2e48
--- /dev/null
+++ b/cpukit/include/rtems/rtems/asrdata.h
@@ -0,0 +1,58 @@
+/**
+ * @file
+ *
+ * @ingroup ClassicASRImpl
+ *
+ * @brief Classic ASR Data Structures
+ */
+
+/* COPYRIGHT (c) 1989-2013.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.org/license/LICENSE.
+ */
+
+#ifndef _RTEMS_RTEMS_ASRDATA_H
+#define _RTEMS_RTEMS_ASRDATA_H
+
+#include <rtems/rtems/asr.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @addtogroup ClassicASRImpl
+ *
+ * @{
+ */
+
+/**
+ * The following defines the control structure used to manage
+ * signals. Each thread has a copy of this record.
+ */
+typedef struct {
+ /** This field indicates if are ASRs enabled currently. */
+ bool is_enabled;
+ /** This field indicates if address of the signal handler function. */
+ rtems_asr_entry handler;
+ /** This field indicates if the task mode the signal will run with. */
+ Modes_Control mode_set;
+ /** This field indicates the signal set that is posted. */
+ rtems_signal_set signals_posted;
+ /** This field indicates the signal set that is pending. */
+ rtems_signal_set signals_pending;
+ /** This field indicates if nest level of signals being processed */
+ uint32_t nest_level;
+} ASR_Information;
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+/* end of include file */
diff --git a/cpukit/include/rtems/rtems/asrimpl.h b/cpukit/include/rtems/rtems/asrimpl.h
index 141c34d4bb..38cc1e29c6 100644
--- a/cpukit/include/rtems/rtems/asrimpl.h
+++ b/cpukit/include/rtems/rtems/asrimpl.h
@@ -17,7 +17,7 @@
#ifndef _RTEMS_RTEMS_ASRIMPL_H
#define _RTEMS_RTEMS_ASRIMPL_H
-#include <rtems/rtems/asr.h>
+#include <rtems/rtems/asrdata.h>
#include <string.h>
diff --git a/cpukit/include/rtems/rtems/tasks.h b/cpukit/include/rtems/rtems/tasks.h
index aaba8851df..989008689b 100644
--- a/cpukit/include/rtems/rtems/tasks.h
+++ b/cpukit/include/rtems/rtems/tasks.h
@@ -42,7 +42,7 @@
#include <rtems/score/thread.h>
#include <rtems/rtems/types.h>
#include <rtems/rtems/event.h>
-#include <rtems/rtems/asr.h>
+#include <rtems/rtems/asrdata.h>
#include <rtems/rtems/attr.h>
#include <rtems/rtems/status.h>