diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-12-14 14:59:56 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-02-03 10:00:52 +0100 |
commit | ae85b0663eb19db435476d268a10187633f2ba56 (patch) | |
tree | 4696bcfaa9ccf2f07f2047853a7df56f7e36ea36 /cpukit/rtems | |
parent | Optional Classic Signal initialization (diff) | |
download | rtems-ae85b0663eb19db435476d268a10187633f2ba56.tar.bz2 |
Optional Classic Event initialization
Update #2408.
Diffstat (limited to 'cpukit/rtems')
-rw-r--r-- | cpukit/rtems/Makefile.am | 1 | ||||
-rw-r--r-- | cpukit/rtems/include/rtems/rtems/eventimpl.h | 12 | ||||
-rw-r--r-- | cpukit/rtems/src/event.c | 32 | ||||
-rw-r--r-- | cpukit/rtems/src/eventseize.c | 14 |
4 files changed, 14 insertions, 45 deletions
diff --git a/cpukit/rtems/Makefile.am b/cpukit/rtems/Makefile.am index 211aef4e6a..6c87b94a75 100644 --- a/cpukit/rtems/Makefile.am +++ b/cpukit/rtems/Makefile.am @@ -199,7 +199,6 @@ librtems_a_SOURCES += src/semdata.c librtems_a_SOURCES += src/semsetpriority.c ## EVENT_C_FILES -librtems_a_SOURCES += src/event.c librtems_a_SOURCES += src/eventreceive.c librtems_a_SOURCES += src/eventseize.c librtems_a_SOURCES += src/eventsend.c diff --git a/cpukit/rtems/include/rtems/rtems/eventimpl.h b/cpukit/rtems/include/rtems/rtems/eventimpl.h index 460b7ce90d..f4850d2fb8 100644 --- a/cpukit/rtems/include/rtems/rtems/eventimpl.h +++ b/cpukit/rtems/include/rtems/rtems/eventimpl.h @@ -44,18 +44,6 @@ extern "C" { */ #define EVENT_SETS_NONE_PENDING 0 -/** - * @brief Event Manager Initialization - * - * Event Manager - * - * This routine performs the initialization necessary for this manager. - * - * - INTERRUPT LATENCY: - * + single case - */ -void _Event_Manager_initialization( void ); - void _Event_Seize( rtems_event_set event_in, rtems_option option_set, diff --git a/cpukit/rtems/src/event.c b/cpukit/rtems/src/event.c deleted file mode 100644 index 7ec44d741d..0000000000 --- a/cpukit/rtems/src/event.c +++ /dev/null @@ -1,32 +0,0 @@ -/** - * @file - * - * @brief Event Manager Initialization - * @ingroup ClassicEvent - */ - -/* - * COPYRIGHT (c) 1989-2008. - * 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. - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include <rtems/rtems/eventimpl.h> - -void _Event_Manager_initialization( void ) -{ - /* - * Register the MP Process Packet routine. - */ - -#if defined(RTEMS_MULTIPROCESSING) - _MPCI_Register_packet_processor( MP_PACKET_EVENT, _Event_MP_Process_packet ); -#endif -} diff --git a/cpukit/rtems/src/eventseize.c b/cpukit/rtems/src/eventseize.c index 9c41b777f9..3dc554f61b 100644 --- a/cpukit/rtems/src/eventseize.c +++ b/cpukit/rtems/src/eventseize.c @@ -18,6 +18,7 @@ #include "config.h" #endif +#include <rtems/sysinit.h> #include <rtems/rtems/eventimpl.h> #include <rtems/rtems/optionsimpl.h> #include <rtems/score/threadimpl.h> @@ -118,3 +119,16 @@ void _Event_Seize( _Thread_Dispatch_enable( cpu_self ); } + +#if defined(RTEMS_MULTIPROCESSING) +static void _Event_Manager_initialization( void ) +{ + _MPCI_Register_packet_processor( MP_PACKET_EVENT, _Event_MP_Process_packet ); +} + +RTEMS_SYSINIT_ITEM( + _Event_Manager_initialization, + RTEMS_SYSINIT_CLASSIC_EVENT, + RTEMS_SYSINIT_ORDER_MIDDLE +); +#endif |