Changeset ae85b066 in rtems


Ignore:
Timestamp:
Dec 14, 2015, 1:59:56 PM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
ed8b00e6
Parents:
a7f36829
git-author:
Sebastian Huber <sebastian.huber@…> (12/14/15 13:59:56)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/03/16 09:00:52)
Message:

Optional Classic Event initialization

Update #2408.

Files:
1 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • cpukit/rtems/Makefile.am

    ra7f36829 rae85b066  
    200200
    201201## EVENT_C_FILES
    202 librtems_a_SOURCES += src/event.c
    203202librtems_a_SOURCES += src/eventreceive.c
    204203librtems_a_SOURCES += src/eventseize.c
  • cpukit/rtems/include/rtems/rtems/eventimpl.h

    ra7f36829 rae85b066  
    4444 */
    4545#define EVENT_SETS_NONE_PENDING 0
    46 
    47 /**
    48  *  @brief Event Manager Initialization
    49  *
    50  *  Event Manager
    51  *
    52  *  This routine performs the initialization necessary for this manager.
    53  *
    54  *  - INTERRUPT LATENCY:
    55  *    + single case
    56  */
    57 void _Event_Manager_initialization( void );
    5846
    5947void _Event_Seize(
  • cpukit/rtems/src/eventseize.c

    ra7f36829 rae85b066  
    1919#endif
    2020
     21#include <rtems/sysinit.h>
    2122#include <rtems/rtems/eventimpl.h>
    2223#include <rtems/rtems/optionsimpl.h>
     
    119120  _Thread_Dispatch_enable( cpu_self );
    120121}
     122
     123#if defined(RTEMS_MULTIPROCESSING)
     124static void _Event_Manager_initialization( void )
     125{
     126  _MPCI_Register_packet_processor( MP_PACKET_EVENT, _Event_MP_Process_packet );
     127}
     128
     129RTEMS_SYSINIT_ITEM(
     130  _Event_Manager_initialization,
     131  RTEMS_SYSINIT_CLASSIC_EVENT,
     132  RTEMS_SYSINIT_ORDER_MIDDLE
     133);
     134#endif
  • cpukit/sapi/src/rtemsapi.c

    ra7f36829 rae85b066  
    3030#include <rtems/rtems/clock.h>
    3131#include <rtems/rtems/dpmemimpl.h>
    32 #include <rtems/rtems/eventimpl.h>
    3332#include <rtems/rtems/messageimpl.h>
    3433#include <rtems/rtems/partimpl.h>
     
    3938void _RTEMS_API_Initialize(void)
    4039{
    41   _Event_Manager_initialization();
    4240  _Message_queue_Manager_initialization();
    4341  _Semaphore_Manager_initialization();
  • cpukit/score/include/rtems/sysinit.h

    ra7f36829 rae85b066  
    3535#define RTEMS_SYSINIT_CLASSIC_TIMER              000341
    3636#define RTEMS_SYSINIT_CLASSIC_SIGNAL             000342
     37#define RTEMS_SYSINIT_CLASSIC_EVENT              000343
    3738#define RTEMS_SYSINIT_IDLE_THREADS               000380
    3839#define RTEMS_SYSINIT_BSP_LIBC                   000400
  • testsuites/sptests/spsysinit01/init.c

    ra7f36829 rae85b066  
    5252  CLASSIC_SIGNAL_PRE,
    5353  CLASSIC_SIGNAL_POST,
     54  CLASSIC_EVENT_PRE,
     55  CLASSIC_EVENT_POST,
    5456  IDLE_THREADS_PRE,
    5557  IDLE_THREADS_POST,
     
    192194}
    193195
     196FIRST(RTEMS_SYSINIT_CLASSIC_EVENT)
     197{
     198  /* There is nothing to do in case RTEMS_MULTIPROCESSING is not defined */
     199  next_step(CLASSIC_EVENT_PRE);
     200}
     201
     202LAST(RTEMS_SYSINIT_CLASSIC_EVENT)
     203{
     204  next_step(CLASSIC_EVENT_POST);
     205}
     206
    194207FIRST(RTEMS_SYSINIT_IDLE_THREADS)
    195208{
Note: See TracChangeset for help on using the changeset viewer.