summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/mqueue.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-12-14 16:33:39 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-02-03 10:00:55 +0100
commit3015ed641a41059dec9abad1eb3872a006ee6324 (patch)
treee9c96626b291275184a46bc76506a3282c32e0dd /cpukit/posix/src/mqueue.c
parentOptional POSIX Mutex initialization (diff)
downloadrtems-3015ed641a41059dec9abad1eb3872a006ee6324.tar.bz2
Optional POSIX Message Queue initialization
Update #2408.
Diffstat (limited to 'cpukit/posix/src/mqueue.c')
-rw-r--r--cpukit/posix/src/mqueue.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/cpukit/posix/src/mqueue.c b/cpukit/posix/src/mqueue.c
index 43878b708c..0f261f6947 100644
--- a/cpukit/posix/src/mqueue.c
+++ b/cpukit/posix/src/mqueue.c
@@ -28,10 +28,15 @@
#include <rtems/system.h>
#include <rtems/config.h>
+#include <rtems/sysinit.h>
#include <rtems/score/watchdog.h>
#include <rtems/seterr.h>
#include <rtems/posix/mqueueimpl.h>
+Objects_Information _POSIX_Message_queue_Information;
+
+Objects_Information _POSIX_Message_queue_Information_fds;
+
/*
* _POSIX_Message_queue_Manager_initialization
*
@@ -42,7 +47,7 @@
* Output parameters: NONE
*/
-void _POSIX_Message_queue_Manager_initialization(void)
+static void _POSIX_Message_queue_Manager_initialization(void)
{
_Objects_Initialize_information(
&_POSIX_Message_queue_Information, /* object information table */
@@ -76,3 +81,9 @@ void _POSIX_Message_queue_Manager_initialization(void)
#endif
);
}
+
+RTEMS_SYSINIT_ITEM(
+ _POSIX_Message_queue_Manager_initialization,
+ RTEMS_SYSINIT_POSIX_MESSAGE_QUEUE,
+ RTEMS_SYSINIT_ORDER_MIDDLE
+);