summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/src/dpmem.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-12-14 15:12:39 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-02-03 10:00:53 +0100
commitaf12278f9b33d7d8dca96d3873472ef2382f3c8e (patch)
treeebf8362e653d047eab45b59f0ebd53a21e8a5852 /cpukit/rtems/src/dpmem.c
parentOptional Classic Region initialization (diff)
downloadrtems-af12278f9b33d7d8dca96d3873472ef2382f3c8e.tar.bz2
Optional Classic Dual-Ported Memory initialization
Update #2408.
Diffstat (limited to 'cpukit/rtems/src/dpmem.c')
-rw-r--r--cpukit/rtems/src/dpmem.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/cpukit/rtems/src/dpmem.c b/cpukit/rtems/src/dpmem.c
index 9af807e951..aca71a3a1f 100644
--- a/cpukit/rtems/src/dpmem.c
+++ b/cpukit/rtems/src/dpmem.c
@@ -20,13 +20,14 @@
#include <rtems/system.h>
#include <rtems/config.h>
+#include <rtems/sysinit.h>
#include <rtems/rtems/status.h>
#include <rtems/rtems/support.h>
-#include <rtems/score/address.h>
#include <rtems/rtems/dpmemimpl.h>
-#include <rtems/score/thread.h>
-void _Dual_ported_memory_Manager_initialization(void)
+Objects_Information _Dual_ported_memory_Information;
+
+static void _Dual_ported_memory_Manager_initialization(void)
{
_Objects_Initialize_information(
&_Dual_ported_memory_Information, /* object information table */
@@ -45,3 +46,9 @@ void _Dual_ported_memory_Manager_initialization(void)
#endif
);
}
+
+RTEMS_SYSINIT_ITEM(
+ _Dual_ported_memory_Manager_initialization,
+ RTEMS_SYSINIT_CLASSIC_DUAL_PORTED_MEMORY,
+ RTEMS_SYSINIT_ORDER_MIDDLE
+);