Ticket #1593: rtems_sysinit_size_compare.patch

File rtems_sysinit_size_compare.patch, 38.7 KB (added by zhangwenjie, on 07/18/10 at 15:20:49)

The patch of updating RTEMS initialise managers API wiht sysinit api

  • c/src/optman/rtems/no-barrier.c

    diff --git a/c/src/optman/rtems/no-barrier.c b/c/src/optman/rtems/no-barrier.c
    index 9d855d3..7704adc 100644
    a b  
    1717#include <rtems/score/object.h>
    1818#include <rtems/rtems/barrier.h>
    1919
     20#if 0
    2021void _Barrier_Manager_initialization(void)
    2122{
    2223}
     24#endif
  • c/src/optman/rtems/no-dpmem.c

    diff --git a/c/src/optman/rtems/no-dpmem.c b/c/src/optman/rtems/no-dpmem.c
    index 06dc8d0..548c9e9 100644
    a b  
    2121#include <rtems/rtems/types.h>
    2222#include <rtems/rtems/dpmem.h>
    2323
     24#if 0
    2425void _Dual_ported_memory_Manager_initialization(void)
    2526{
    2627}
     28#endif
  • c/src/optman/rtems/no-event.c

    diff --git a/c/src/optman/rtems/no-event.c b/c/src/optman/rtems/no-event.c
    index 4a24366..8a4ad5a 100644
    a b  
    2121#include <rtems/score/thread.h>
    2222#include <rtems/score/interr.h>
    2323
     24#if 0
    2425void _Event_Manager_initialization(void)
    2526{
    2627}
    27 
     28#endif
  • c/src/optman/rtems/no-mp.c

    diff --git a/c/src/optman/rtems/no-mp.c b/c/src/optman/rtems/no-mp.c
    index 88b9b6c..87cb0fd 100644
    a b  
    3030#include <rtems/score/sysstate.h>
    3131#include <rtems/score/interr.h>
    3232
     33#if 0
    3334void _Multiprocessing_Manager_initialization(void)
    3435{
    3536}
    3637#endif
     38
     39#endif
  • c/src/optman/rtems/no-msg.c

    diff --git a/c/src/optman/rtems/no-msg.c b/c/src/optman/rtems/no-msg.c
    index 1921831..e232d5f 100644
    a b  
    2525#include <rtems/score/wkspace.h>
    2626#include <rtems/score/interr.h>
    2727
     28#if 0
    2829void _Message_queue_Manager_initialization(void)
    2930{
    3031}
     32#endif
  • c/src/optman/rtems/no-part.c

    diff --git a/c/src/optman/rtems/no-part.c b/c/src/optman/rtems/no-part.c
    index 32cb4af..2f58e2c 100644
    a b  
    2020#include <rtems/score/thread.h>
    2121#include <rtems/score/interr.h>
    2222
     23#if 0
    2324void _Partition_Manager_initialization(void)
    2425{
    2526}
     27#endif
  • c/src/optman/rtems/no-region.c

    diff --git a/c/src/optman/rtems/no-region.c b/c/src/optman/rtems/no-region.c
    index dbcf575..9153798 100644
    a b  
    2121#include <rtems/score/thread.h>
    2222#include <rtems/score/interr.h>
    2323
     24#if 0
    2425void _Region_Manager_initialization(void)
    2526{
    2627}
     28#endif
  • c/src/optman/rtems/no-rtmon.c

    diff --git a/c/src/optman/rtems/no-rtmon.c b/c/src/optman/rtems/no-rtmon.c
    index 66f1c40..9ecdb75 100644
    a b  
    2222#include <rtems/rtems/types.h>
    2323#include <rtems/rtems/ratemon.h>
    2424
     25#if 0
    2526void _Rate_monotonic_Manager_initialization(void)
    2627{
    2728}
     29#endif
  • c/src/optman/rtems/no-sem.c

    diff --git a/c/src/optman/rtems/no-sem.c b/c/src/optman/rtems/no-sem.c
    index 522cf7b..7fcca7d 100644
    a b  
    2424#include <rtems/score/threadq.h>
    2525#include <rtems/score/interr.h>
    2626
     27#if 0
    2728void _Semaphore_Manager_initialization(void)
    2829{
    2930}
    30 
     31#endif
  • c/src/optman/rtems/no-signal.c

    diff --git a/c/src/optman/rtems/no-signal.c b/c/src/optman/rtems/no-signal.c
    index 95b13d2..664af2d 100644
    a b  
    2222#include <rtems/rtems/modes.h>
    2323#include <rtems/rtems/signal.h>
    2424
     25#if 0
    2526void _Signal_Manager_initialization(void)
    2627{
    2728}
    28  
     29#endif
  • c/src/optman/rtems/no-timer.c

    diff --git a/c/src/optman/rtems/no-timer.c b/c/src/optman/rtems/no-timer.c
    index 4e7dc15..9934a5b 100644
    a b  
    2323#include <rtems/rtems/types.h>
    2424#include <rtems/rtems/timer.h>
    2525
     26#if 0
    2627void _Timer_Manager_initialization(void)
    2728{
    2829}
    29 
     30#endif
  • cpukit/rtems/include/rtems/rtems/barrier.h

    diff --git a/cpukit/rtems/include/rtems/rtems/barrier.h b/cpukit/rtems/include/rtems/rtems/barrier.h
    index 447645d..3bff2f7 100644
    a b extern "C" { 
    5555#include <rtems/rtems/status.h>
    5656#include <rtems/score/object.h>
    5757#include <rtems/score/corebarrier.h>
     58#include <rtems/score/sysinit.h>
    5859
    5960/**
    6061 *  This type defines the control block used to manage each barrier.
    RTEMS_BARRIER_EXTERN Objects_Information _Barrier_Information; 
    8283void _Barrier_Manager_initialization(void);
    8384
    8485/**
     86 *  @brief _Barrier_Manager_Sysinit
     87 *
     88 *  This routine performs sysinit sequenced initialization or temination
     89 *  necessary for this manager.
     90 */
     91void _Barrier_Manager_Sysinit(
     92  Sysinit_State state
     93);
     94
     95/**
    8596 *  @brief rtems_barrier_create
    8697 *
    8798 *  This routine implements the rtems_barrier_create directive.  The
  • cpukit/rtems/include/rtems/rtems/dpmem.h

    diff --git a/cpukit/rtems/include/rtems/rtems/dpmem.h b/cpukit/rtems/include/rtems/rtems/dpmem.h
    index 6bd7400..f498e01 100644
    a b extern "C" { 
    4444#endif
    4545
    4646#include <rtems/score/object.h>
     47#include <rtems/score/sysinit.h>
    4748#include <rtems/rtems/support.h>
    4849#include <rtems/rtems/status.h>
    4950
    RTEMS_DPMEM_EXTERN Objects_Information _Dual_ported_memory_Information; 
    8687void _Dual_ported_memory_Manager_initialization(void);
    8788
    8889/**
     90 *  @brief _Dual_ported_memory_Manager_Sysinit
     91 *
     92 *  This routine performs sysinit sequenced initialization or temination
     93 *  necessary for this manager.
     94 */
     95void _Dual_ported_memory_Manager_Sysinit(
     96  Sysinit_State state
     97);
     98
     99/**
    89100 *  @brief rtems_port_create
    90101 *
    91102 *  This routine implements the rtems_port_create directive.  The port
  • cpukit/rtems/include/rtems/rtems/event.h

    diff --git a/cpukit/rtems/include/rtems/rtems/event.h b/cpukit/rtems/include/rtems/rtems/event.h
    index f18a1e6..3b0f197 100644
    a b extern "C" { 
    4646#include <rtems/score/thread.h>
    4747#include <rtems/score/threadsync.h>
    4848#include <rtems/score/watchdog.h>
     49#include <rtems/score/sysinit.h>
    4950#include <rtems/rtems/eventset.h>
    5051
    5152/**
    extern "C" { 
    7172void _Event_Manager_initialization( void );
    7273
    7374/**
     75 *  @brief _Event_Manager_Sysinit
     76 *
     77 *  This routine performs sysinit sequenced initialization or temination
     78 *  necessary for this manager.
     79 */
     80void _Event_Manager_Sysinit(
     81  Sysinit_State state
     82);
     83
     84/**
    7485 *  @brief rtems_event_send
    7586 *
    7687 *  This routine implements the rtems_event_send directive.  It sends
  • cpukit/rtems/include/rtems/rtems/message.h

    diff --git a/cpukit/rtems/include/rtems/rtems/message.h b/cpukit/rtems/include/rtems/rtems/message.h
    index 87ac704..371fb2f 100644
    a b extern "C" { 
    5151#include <rtems/score/object.h>
    5252#include <rtems/rtems/attr.h>
    5353#include <rtems/score/coremsg.h>
     54#include <rtems/score/sysinit.h>
    5455
    5556/**
    5657 *  @defgroup ClassicMessageQueue Message Queues
    RTEMS_MESSAGE_EXTERN Objects_Information _Message_queue_Information; 
    106107void _Message_queue_Manager_initialization(void);
    107108
    108109/**
     110 *  @brief _Message_queue_Manager_Sysinit
     111 *
     112 *  This routine performs sysinit sequenced initialization or temination
     113 *  necessary for this manager.
     114 */
     115void _Message_queue_Manager_Sysinit(
     116  Sysinit_State state
     117);
     118
     119/**
    109120 *  @brief rtems_message_queue_create
    110121 *
    111122 *  This routine implements the rtems_message_queue_create directive.  The
  • cpukit/rtems/include/rtems/rtems/part.h

    diff --git a/cpukit/rtems/include/rtems/rtems/part.h b/cpukit/rtems/include/rtems/rtems/part.h
    index 476de02..9b580da 100644
    a b extern "C" { 
    4848#include <rtems/rtems/status.h>
    4949#include <rtems/rtems/support.h>
    5050#include <rtems/rtems/types.h>
     51#include <rtems/score/sysinit.h>
    5152
    5253/**
    5354 *  @defgroup ClassicPart Partitions
    RTEMS_PART_EXTERN Objects_Information _Partition_Information; 
    9394void _Partition_Manager_initialization(void);
    9495
    9596/**
     97 *  @brief _Partition_Manager_Sysinit
     98 *
     99 *  This routine performs sysinit sequenced initialization or temination
     100 *  necessary for this manager.
     101 */
     102void _Partition_Manager_Sysinit(
     103  Sysinit_State state
     104);
     105
     106/**
    96107 *  @brief rtems_partition_create
    97108 *
    98109 *  This routine implements the rtems_partition_create directive.  The
  • cpukit/rtems/include/rtems/rtems/ratemon.h

    diff --git a/cpukit/rtems/include/rtems/rtems/ratemon.h b/cpukit/rtems/include/rtems/rtems/ratemon.h
    index aa18829..be0e382 100644
    a b  
    3939#endif
    4040
    4141#include <rtems/bspIo.h>
     42#include <rtems/score/sysinit.h>
    4243
    4344/**
    4445 *  @defgroup ClassicRateMon Rate Monotonic Scheduler
    RTEMS_RATEMON_EXTERN Objects_Information _Rate_monotonic_Information; 
    275276void _Rate_monotonic_Manager_initialization(void);
    276277
    277278/**
     279 *  @brief _Rate_monotonic_Manager_Sysinit
     280 *
     281 *  This routine performs sysinit sequenced initialization or temination
     282 *  necessary for this manager.
     283 */
     284void _Rate_monotonic_Manager_Sysinit(
     285  Sysinit_State state
     286);
     287
     288/**
    278289 *  @brief rtems_rate_monotonic_create
    279290 *
    280291 *  This routine implements the rate_monotonic_create directive.  The
  • cpukit/rtems/include/rtems/rtems/region.h

    diff --git a/cpukit/rtems/include/rtems/rtems/region.h b/cpukit/rtems/include/rtems/rtems/region.h
    index acd1e76..785e331 100644
    a b  
    3636#include <rtems/rtems/status.h>
    3737#include <rtems/rtems/support.h>
    3838#include <rtems/rtems/types.h>
     39#include <rtems/score/sysinit.h>
    3940
    4041/**
    4142 *  @defgroup ClassicRegion Regions
    RTEMS_REGION_EXTERN Objects_Information _Region_Information; 
    9192void _Region_Manager_initialization(void);
    9293
    9394/**
     95 *  @brief _Region_Manager_Sysinit
     96 *
     97 *  This routine performs sysinit sequenced initialization or temination
     98 *  necessary for this manager.
     99 */
     100void _Region_Manager_Sysinit(
     101  Sysinit_State state
     102);
     103
     104/**
    94105 *  @brief rtems_region_create
    95106 *
    96107 *  This routine implements the rtems_region_create directive.  The
  • cpukit/rtems/include/rtems/rtems/sem.h

    diff --git a/cpukit/rtems/include/rtems/rtems/sem.h b/cpukit/rtems/include/rtems/rtems/sem.h
    index 5868453..ce37f4f 100644
    a b extern "C" { 
    5050#include <rtems/score/coremutex.h>
    5151#include <rtems/score/object.h>
    5252#include <rtems/score/coresem.h>
     53#include <rtems/score/sysinit.h>
    5354
    5455/**
    5556 *  @defgroup ClassicSem Semaphores
    RTEMS_SEM_EXTERN Objects_Information _Semaphore_Information; 
    113114void _Semaphore_Manager_initialization(void);
    114115
    115116/**
     117 *  @brief _Semaphore_Manager_Sysinit
     118 *
     119 *  This routine performs sysinit sequenced initialization or temination
     120 *  necessary for this manager.
     121 */
     122void _Semaphore_Manager_Sysinit(
     123  Sysinit_State state
     124);
     125
     126/**
    116127 *  @brief rtems_semaphore_create
    117128 *
    118129 *  This routine implements the rtems_semaphore_create directive.  The
  • cpukit/rtems/include/rtems/rtems/signal.h

    diff --git a/cpukit/rtems/include/rtems/rtems/signal.h b/cpukit/rtems/include/rtems/rtems/signal.h
    index 4897807..b3caa24 100644
    a b  
    3838#include <rtems/score/object.h>
    3939#include <rtems/rtems/status.h>
    4040#include <rtems/rtems/types.h>
     41#include <rtems/score/sysinit.h>
    4142
    4243#ifdef __cplusplus
    4344extern "C" {
    extern "C" { 
    5051void _Signal_Manager_initialization( void );
    5152
    5253/**
     54 *  @brief _Signal_Manager_Sysinit
     55 *
     56 *  This routine performs sysinit sequenced initialization or temination
     57 *  necessary for this manager.
     58 */
     59void _Signal_Manager_Sysinit(
     60  Sysinit_State state
     61);
     62
     63/**
    5364 *  @brief rtems_signal_catch
    5465 *
    5566 *  This routine implements the rtems_signal_catch directive.  This directive
  • cpukit/rtems/include/rtems/rtems/tasks.h

    diff --git a/cpukit/rtems/include/rtems/rtems/tasks.h b/cpukit/rtems/include/rtems/rtems/tasks.h
    index a3f5e35..ee6929a 100644
    a b  
    3838#include <rtems/score/object.h>
    3939#include <rtems/score/states.h>
    4040#include <rtems/score/thread.h>
     41#include <rtems/score/sysinit.h>
    4142#include <rtems/rtems/types.h>
    4243#include <rtems/rtems/eventset.h>
    4344#include <rtems/rtems/asr.h>
    extern void (*_RTEMS_tasks_Initialize_user_tasks_p)(void); 
    246247void _RTEMS_tasks_Manager_initialization(void);
    247248
    248249/**
     250 *  @brief _RTEMS_tasks_Manager_Sysinit
     251 *
     252 *  This routine performs sysinit sequenced initialization or temination
     253 *  necessary for this manager.
     254 */
     255void _RTEMS_tasks_Manager_Sysinit(
     256  Sysinit_State state
     257);
     258
     259/**
    249260 *  @brief rtems_task_create
    250261 *
    251262 *  This routine implements the rtems_task_create directive.  The task
  • cpukit/rtems/include/rtems/rtems/timer.h

    diff --git a/cpukit/rtems/include/rtems/rtems/timer.h b/cpukit/rtems/include/rtems/rtems/timer.h
    index 086fc8a..25869a3 100644
    a b extern "C" { 
    5757#include <rtems/score/chain.h>
    5858#include <rtems/rtems/clock.h>
    5959#include <rtems/rtems/attr.h>
     60#include <rtems/score/sysinit.h>
    6061
    6162/**
    6263 *  @defgroup ClassicTimer Timers
    RTEMS_TIMER_EXTERN Objects_Information _Timer_Information; 
    228229void _Timer_Manager_initialization(void);
    229230
    230231/**
     232 *  @brief _Timer_Manager_Sysinit
     233 *
     234 *  This routine performs sysinit sequenced initialization or temination
     235 *  necessary for this manager.
     236 */
     237void _Timer_Manager_Sysinit(
     238  Sysinit_State state
     239);
     240
     241/**
    231242 *  @brief rtems_timer_create
    232243 *
    233244 *  This routine implements the rtems_timer_create directive.  The
  • cpukit/rtems/src/barrier.c

    diff --git a/cpukit/rtems/src/barrier.c b/cpukit/rtems/src/barrier.c
    index ed4c594..e3c426d 100644
    a b  
    2929
    3030#include <rtems/system.h>
    3131#include <rtems/config.h>
     32#include <rtems/fatal.h>
    3233#include <rtems/rtems/status.h>
    3334#include <rtems/rtems/support.h>
    3435#include <rtems/score/object.h>
     
    3637#if defined(RTEMS_MULTIPROCESSING)
    3738#include <rtems/score/mpci.h>
    3839#endif
     40#include <rtems/score/sysinit.h>
    3941
    4042/**
    4143 *  @brief _Barrier_Manager_initialization
    void _Barrier_Manager_initialization(void) 
    6365#endif
    6466  );
    6567}
     68
     69/**
     70 *  @brief _Barrier_Manager_temination
     71 *
     72 *  Input parameters:   NONE
     73 *
     74 *  Output parameters:  NONE
     75 */
     76
     77void _Barrier_Manager_temination(void)
     78{
     79}
     80
     81/**
     82 *  @brief _Barrier_Manager_Sysinit
     83 *
     84 *  Input parameters:   
     85 *    state  -  initialization or temination
     86 *
     87 *  Output parameters:  NONE
     88 */
     89
     90void _Barrier_Manager_Sysinit(
     91  Sysinit_State state
     92)
     93{
     94  switch ( state ) {
     95    case SYSINIT_INITIALIZE:
     96      _Barrier_Manager_initialization();
     97      break;
     98    case SYSINIT_TERMINATE:
     99      _Barrier_Manager_temination();
     100      break;
     101    default:
     102      rtems_fatal_error_occurred( RTEMS_INCORRECT_STATE );
     103  }
     104}
     105
     106/**
     107 *  @brief Sysinit entry of Barrier Manager
     108 *
     109 *  Input parameters:   
     110 *    handler  -  _Barrier_Manager_Sysinit
     111 *    group  -  SYSINIT_GROUP_BARRIER
     112 */
     113
     114SYSINIT_ENTRY( _Barrier_Manager_Sysinit, SYSINIT_GROUP_BARRIER );
  • cpukit/rtems/src/barriercreate.c

    diff --git a/cpukit/rtems/src/barriercreate.c b/cpukit/rtems/src/barriercreate.c
    index 88e47bb..bc72f21 100644
    a b  
    2222#include <rtems/score/isr.h>
    2323#include <rtems/score/object.h>
    2424#include <rtems/rtems/barrier.h>
     25#include <rtems/score/sysinit.h>
    2526
    2627/*
    2728 *  rtems_barrier_create
    rtems_status_code rtems_barrier_create( 
    9091  _Thread_Enable_dispatch();
    9192  return RTEMS_SUCCESSFUL;
    9293}
     94
     95/**
     96 *  @brief The reference of Sysinit entry
     97 *
     98 *  Input parameters:   
     99 *    handler  -  _Barrier_Manager_Sysinit
     100 */
     101
     102SYSINIT_REFERENCE( _Barrier_Manager_Sysinit );
  • cpukit/rtems/src/dpmem.c

    diff --git a/cpukit/rtems/src/dpmem.c b/cpukit/rtems/src/dpmem.c
    index 05f32ec..460a72b 100644
    a b  
    1717
    1818#include <rtems/system.h>
    1919#include <rtems/config.h>
     20#include <rtems/fatal.h>
    2021#include <rtems/rtems/status.h>
    2122#include <rtems/rtems/support.h>
    2223#include <rtems/score/address.h>
    2324#include <rtems/rtems/dpmem.h>
    2425#include <rtems/score/object.h>
    2526#include <rtems/score/thread.h>
     27#include <rtems/score/sysinit.h>
    2628
    2729/*PAGE
    2830 *
    void _Dual_ported_memory_Manager_initialization(void) 
    5557#endif
    5658  );
    5759}
     60
     61/**
     62 *  @brief _Dual_ported_memory_Manager_temination
     63 *
     64 *  Input parameters:   NONE
     65 *
     66 *  Output parameters:  NONE
     67 */
     68
     69void _Dual_ported_memory_Manager_temination(void)
     70{
     71}
     72
     73/**
     74 *  @brief _Dual_ported_memory_Manager_Sysinit
     75 *
     76 *  Input parameters:   
     77 *    state  -  initialization or temination
     78 *
     79 *  Output parameters:  NONE
     80 */
     81
     82void _Dual_ported_memory_Manager_Sysinit(
     83  Sysinit_State state
     84)
     85{
     86  switch ( state ) {
     87    case SYSINIT_INITIALIZE:
     88      _Dual_ported_memory_Manager_initialization();
     89      break;
     90    case SYSINIT_TERMINATE:
     91      _Dual_ported_memory_Manager_temination();
     92      break;
     93    default:
     94      rtems_fatal_error_occurred( RTEMS_INCORRECT_STATE );
     95 }
     96}
     97
     98/**
     99 *  @brief Sysinit entry of Dual_ported_memory Manager
     100 *
     101 *  Input parameters:   
     102 *    handler  -  _Dual_ported_memory_Manager_Sysinit
     103 *    group  -  SYSINIT_GROUP_DPMEM
     104 */
     105
     106SYSINIT_ENTRY( _Dual_ported_memory_Manager_Sysinit, SYSINIT_GROUP_DPMEM );
  • cpukit/rtems/src/dpmemcreate.c

    diff --git a/cpukit/rtems/src/dpmemcreate.c b/cpukit/rtems/src/dpmemcreate.c
    index e083ba9..82948d0 100644
    a b  
    2323#include <rtems/score/object.h>
    2424#include <rtems/score/thread.h>
    2525#include <rtems/rtems/dpmem.h>
     26#include <rtems/score/sysinit.h>
    2627
    2728/*PAGE
    2829 *
    rtems_status_code rtems_port_create( 
    8687  _Thread_Enable_dispatch();
    8788  return RTEMS_SUCCESSFUL;
    8889}
     90
     91/**
     92 *  @brief The reference of Sysinit entry
     93 *
     94 *  Input parameters:   
     95 *    handler  -  _Dual_ported_memory_Manager_Sysinit
     96 */
     97
     98SYSINIT_REFERENCE( _Dual_ported_memory_Manager_Sysinit );
  • cpukit/rtems/src/event.c

    diff --git a/cpukit/rtems/src/event.c b/cpukit/rtems/src/event.c
    index b19edd5..902ce74 100644
    a b  
    1616#endif
    1717
    1818#include <rtems/system.h>
     19#include <rtems/fatal.h>
    1920#include <rtems/rtems/status.h>
    2021#include <rtems/rtems/event.h>
    2122#include <rtems/score/isr.h>
     
    2425#include <rtems/score/states.h>
    2526#include <rtems/score/thread.h>
    2627#include <rtems/rtems/tasks.h>
     28#include <rtems/score/sysinit.h>
    2729
    2830/*PAGE
    2931 *
    void _Event_Manager_initialization( void ) 
    4648  _MPCI_Register_packet_processor( MP_PACKET_EVENT, _Event_MP_Process_packet );
    4749#endif
    4850}
     51
     52/**
     53 *  @brief _Event_Manager_temination
     54 *
     55 *  Input parameters:   NONE
     56 *
     57 *  Output parameters:  NONE
     58 */
     59
     60void _Event_Manager_temination(void)
     61{
     62}
     63
     64/**
     65 *  @brief _Event_Manager_Sysinit
     66 *
     67 *  Input parameters:   
     68 *    state  -  initialization or temination
     69 *
     70 *  Output parameters:  NONE
     71 */
     72
     73void _Event_Manager_Sysinit(
     74  Sysinit_State state
     75)
     76{
     77  switch ( state ) {
     78    case SYSINIT_INITIALIZE:
     79      _Event_Manager_initialization();
     80      break;
     81    case SYSINIT_TERMINATE:
     82      _Event_Manager_temination();
     83      break;
     84    default:
     85      rtems_fatal_error_occurred( RTEMS_INCORRECT_STATE );
     86  }
     87}
     88
     89/**
     90 *  @brief Sysinit entry of Event Manager
     91 *
     92 *  Input parameters:   
     93 *    handler  -  _Event_Manager_Sysinit
     94 *    group  -  SYSINIT_GROUP_EVENT
     95 */
     96
     97SYSINIT_ENTRY( _Event_Manager_Sysinit, SYSINIT_GROUP_EVENT );
  • cpukit/rtems/src/eventreceive.c

    diff --git a/cpukit/rtems/src/eventreceive.c b/cpukit/rtems/src/eventreceive.c
    index 6440211..079bf33 100644
    a b  
    2424#include <rtems/score/states.h>
    2525#include <rtems/score/thread.h>
    2626#include <rtems/rtems/tasks.h>
     27#include <rtems/score/sysinit.h>
    2728
    2829/*PAGE
    2930 *
    rtems_status_code rtems_event_receive( 
    6768  _Thread_Enable_dispatch();
    6869  return( _Thread_Executing->Wait.return_code );
    6970}
     71
     72/**
     73 *  @brief The reference of Sysinit entry
     74 *
     75 *  Input parameters:   
     76 *    handler  -  _Event_Manager_Sysinit
     77 */
     78
     79SYSINIT_REFERENCE( _Event_Manager_Sysinit );
  • cpukit/rtems/src/eventsend.c

    diff --git a/cpukit/rtems/src/eventsend.c b/cpukit/rtems/src/eventsend.c
    index 5236477..f8be407 100644
    a b  
    2424#include <rtems/score/states.h>
    2525#include <rtems/score/thread.h>
    2626#include <rtems/rtems/tasks.h>
     27#include <rtems/score/sysinit.h>
    2728
    2829/*PAGE
    2930 *
    rtems_status_code rtems_event_send( 
    7677
    7778  return RTEMS_INVALID_ID;
    7879}
     80
     81/**
     82 *  @brief The reference of Sysinit entry
     83 *
     84 *  Input parameters:   
     85 *    handler  -  _Event_Manager_Sysinit
     86 */
     87
     88SYSINIT_REFERENCE( _Event_Manager_Sysinit );
  • cpukit/rtems/src/msg.c

    diff --git a/cpukit/rtems/src/msg.c b/cpukit/rtems/src/msg.c
    index fd718d5..5d72cc0 100644
    a b  
    1818
    1919#include <rtems/system.h>
    2020#include <rtems/config.h>
     21#include <rtems/fatal.h>
    2122#include <rtems/score/sysstate.h>
    2223#include <rtems/score/chain.h>
    2324#include <rtems/score/isr.h>
     
    3435#include <rtems/rtems/message.h>
    3536#include <rtems/rtems/options.h>
    3637#include <rtems/rtems/support.h>
     38#include <rtems/score/sysinit.h>
    3739
    3840/*PAGE
    3941 *
    void _Message_queue_Manager_initialization(void) 
    7981#endif
    8082
    8183}
     84
     85/**
     86 *  @brief _Message_queue_Manager_temination
     87 *
     88 *  Input parameters:   NONE
     89 *
     90 *  Output parameters:  NONE
     91 */
     92
     93void _Message_queue_Manager_temination(void)
     94{
     95}
     96
     97/**
     98 *  @brief _Message_queue_Manager_Sysinit
     99 *
     100 *  Input parameters:   
     101 *    state  -  initialization or temination
     102 *
     103 *  Output parameters:  NONE
     104 */
     105
     106void _Message_queue_Manager_Sysinit(
     107  Sysinit_State state
     108)
     109{
     110  switch ( state ) {
     111    case SYSINIT_INITIALIZE:
     112      _Message_queue_Manager_initialization();
     113      break;
     114    case SYSINIT_TERMINATE:
     115      _Message_queue_Manager_temination();
     116      break;
     117    default:
     118      rtems_fatal_error_occurred( RTEMS_INCORRECT_STATE );
     119  }
     120}
     121
     122/**
     123 *  @brief Sysinit entry of Message_queue Manager
     124 *
     125 *  Input parameters:   
     126 *    handler  -  _Message_queue_Manager_Sysinit
     127 *    group  -  SYSINIT_GROUP_MESSAGE
     128 */
     129
     130SYSINIT_ENTRY( _Message_queue_Manager_Sysinit, SYSINIT_GROUP_MESSAGE );
  • cpukit/rtems/src/msgqcreate.c

    diff --git a/cpukit/rtems/src/msgqcreate.c b/cpukit/rtems/src/msgqcreate.c
    index b8eece3..9d29539 100644
    a b  
    3333#include <rtems/rtems/message.h>
    3434#include <rtems/rtems/options.h>
    3535#include <rtems/rtems/support.h>
     36#include <rtems/score/sysinit.h>
    3637
    3738/*PAGE
    3839 *
    rtems_status_code rtems_message_queue_create( 
    163164  _Thread_Enable_dispatch();
    164165  return RTEMS_SUCCESSFUL;
    165166}
     167
     168/**
     169 *  @brief The reference of Sysinit entry
     170 *
     171 *  Input parameters:   
     172 *    handler  -  _Message_queue_Manager_Sysinit
     173 */
     174
     175SYSINIT_REFERENCE( _Message_queue_Manager_Sysinit );
  • cpukit/rtems/src/part.c

    diff --git a/cpukit/rtems/src/part.c b/cpukit/rtems/src/part.c
    index 7b59823..bbf385f 100644
    a b  
    1717
    1818#include <rtems/system.h>
    1919#include <rtems/config.h>
     20#include <rtems/fatal.h>
    2021#include <rtems/rtems/status.h>
    2122#include <rtems/rtems/support.h>
    2223#include <rtems/score/address.h>
     
    2425#include <rtems/rtems/part.h>
    2526#include <rtems/score/thread.h>
    2627#include <rtems/score/sysstate.h>
     28#include <rtems/score/sysinit.h>
    2729
    2830/*PAGE
    2931 *
    void _Partition_Manager_initialization(void) 
    6769#endif
    6870
    6971}
     72
     73/**
     74 *  @brief _Partition_Manager_temination
     75 *
     76 *  Input parameters:   NONE
     77 *
     78 *  Output parameters:  NONE
     79 */
     80
     81void _Partition_Manager_temination(void)
     82{
     83}
     84
     85/**
     86 *  @brief _Partition_Manager_Sysinit
     87 *
     88 *  Input parameters:   
     89 *    state  -  initialization or temination
     90 *
     91 *  Output parameters:  NONE
     92 */
     93
     94void _Partition_Manager_Sysinit(
     95  Sysinit_State state
     96)
     97{
     98  switch ( state ) {
     99    case SYSINIT_INITIALIZE:
     100      _Partition_Manager_initialization();
     101      break;
     102    case SYSINIT_TERMINATE:
     103      _Partition_Manager_temination();
     104      break;
     105    default:
     106      rtems_fatal_error_occurred( RTEMS_INCORRECT_STATE );
     107  }
     108}
     109
     110/**
     111 *  @brief Sysinit entry of Partition Manager
     112 *
     113 *  Input parameters:   
     114 *    handler  -  _Partition_Manager_Sysinit
     115 *    group  -  SYSINIT_GROUP_PARTITION
     116 */
     117
     118SYSINIT_ENTRY( _Partition_Manager_Sysinit, SYSINIT_GROUP_PARTITION );
  • cpukit/rtems/src/partcreate.c

    diff --git a/cpukit/rtems/src/partcreate.c b/cpukit/rtems/src/partcreate.c
    index 3bcfc12..9e8e50c 100644
    a b  
    2424#include <rtems/rtems/part.h>
    2525#include <rtems/score/thread.h>
    2626#include <rtems/score/sysstate.h>
     27#include <rtems/score/sysinit.h>
    2728
    2829/*PAGE
    2930 *
    rtems_status_code rtems_partition_create( 
    127128  _Thread_Enable_dispatch();
    128129  return RTEMS_SUCCESSFUL;
    129130}
     131
     132/**
     133 *  @brief The reference of Sysinit entry
     134 *
     135 *  Input parameters:   
     136 *    handler  -  _Partition_Manager_Sysinit
     137 */
     138
     139SYSINIT_REFERENCE( _Partition_Manager_Sysinit );
  • cpukit/rtems/src/ratemon.c

    diff --git a/cpukit/rtems/src/ratemon.c b/cpukit/rtems/src/ratemon.c
    index 461a336..4965467 100644
    a b  
    1818
    1919#include <rtems/system.h>
    2020#include <rtems/config.h>
     21#include <rtems/fatal.h>
    2122#include <rtems/rtems/status.h>
    2223#include <rtems/rtems/support.h>
    2324#include <rtems/score/isr.h>
    2425#include <rtems/score/object.h>
    2526#include <rtems/rtems/ratemon.h>
    2627#include <rtems/score/thread.h>
     28#include <rtems/score/sysinit.h>
    2729
    2830/*PAGE
    2931 *
    void _Rate_monotonic_Manager_initialization(void) 
    5860#endif
    5961  );
    6062}
     63
     64/**
     65 *  @brief _Rate_monotonic_Manager_temination
     66 *
     67 *  Input parameters:   NONE
     68 *
     69 *  Output parameters:  NONE
     70 */
     71
     72void _Rate_monotonic_Manager_temination(void)
     73{
     74}
     75
     76/**
     77 *  @brief _Rate_monotonic_Manager_Sysinit
     78 *
     79 *  Input parameters:   
     80 *    state  -  initialization or temination
     81 *
     82 *  Output parameters:  NONE
     83 */
     84
     85void _Rate_monotonic_Manager_Sysinit(
     86  Sysinit_State state
     87)
     88{
     89  switch ( state ) {
     90    case SYSINIT_INITIALIZE:
     91      _Rate_monotonic_Manager_initialization();
     92      break;
     93    case SYSINIT_TERMINATE:
     94      _Rate_monotonic_Manager_temination();
     95      break;
     96    default:
     97      rtems_fatal_error_occurred( RTEMS_INCORRECT_STATE );
     98  }
     99}
     100
     101/**
     102 *  @brief Sysinit entry of Rate_monotonic Manager
     103 *
     104 *  Input parameters:   
     105 *    handler  -  _Rate_monotonic_Manager_Sysinit
     106 *    group  -  SYSINIT_GROUP_RATEMON
     107 */
     108
     109SYSINIT_ENTRY( _Rate_monotonic_Manager_Sysinit, SYSINIT_GROUP_RATEMON );
  • cpukit/rtems/src/ratemoncreate.c

    diff --git a/cpukit/rtems/src/ratemoncreate.c b/cpukit/rtems/src/ratemoncreate.c
    index a31c919..e20cc08 100644
    a b  
    2222#include <rtems/score/object.h>
    2323#include <rtems/rtems/ratemon.h>
    2424#include <rtems/score/thread.h>
     25#include <rtems/score/sysinit.h>
    2526
    2627/*PAGE
    2728 *
    rtems_status_code rtems_rate_monotonic_create( 
    7980  _Thread_Enable_dispatch();
    8081  return RTEMS_SUCCESSFUL;
    8182}
     83
     84/**
     85 *  @brief The reference of Sysinit entry
     86 *
     87 *  Input parameters:   
     88 *    handler  -  _Rate_monotonic_Manager_Sysinit
     89 */
     90
     91SYSINIT_REFERENCE( _Rate_monotonic_Manager_Sysinit );
  • cpukit/rtems/src/region.c

    diff --git a/cpukit/rtems/src/region.c b/cpukit/rtems/src/region.c
    index f0d516a..ade5446 100644
    a b  
    1818
    1919#include <rtems/system.h>
    2020#include <rtems/config.h>
     21#include <rtems/fatal.h>
    2122#include <rtems/rtems/status.h>
    2223#include <rtems/rtems/support.h>
    2324#include <rtems/score/object.h>
     
    2627#include <rtems/score/states.h>
    2728#include <rtems/score/thread.h>
    2829#include <rtems/score/apimutex.h>
     30#include <rtems/score/sysinit.h>
    2931
    3032/*PAGE
    3133 *
    void _Region_Manager_initialization(void) 
    6870#endif
    6971
    7072}
     73
     74/**
     75 *  @brief _Region_Manager_temination
     76 *
     77 *  Input parameters:   NONE
     78 *
     79 *  Output parameters:  NONE
     80 */
     81
     82void _Region_Manager_temination(void)
     83{
     84}
     85
     86/**
     87 *  @brief _Region_Manager_Sysinit
     88 *
     89 *  Input parameters:   
     90 *    state  -  initialization or temination
     91 *
     92 *  Output parameters:  NONE
     93 */
     94
     95void _Region_Manager_Sysinit(
     96  Sysinit_State state
     97)
     98{
     99  switch ( state ) {
     100    case SYSINIT_INITIALIZE:
     101      _Region_Manager_initialization();
     102      break;
     103    case SYSINIT_TERMINATE:
     104      _Region_Manager_temination();
     105      break;
     106    default:
     107      rtems_fatal_error_occurred( RTEMS_INCORRECT_STATE );
     108  }
     109}
     110
     111/**
     112 *  @brief Sysinit entry of Region Manager
     113 *
     114 *  Input parameters:   
     115 *    handler  -  _Region_Manager_Sysinit
     116 *    group  -  SYSINIT_GROUP_REGION
     117 */
     118
     119SYSINIT_ENTRY( _Region_Manager_Sysinit, SYSINIT_GROUP_REGION );
  • cpukit/rtems/src/regioncreate.c

    diff --git a/cpukit/rtems/src/regioncreate.c b/cpukit/rtems/src/regioncreate.c
    index 0161df4..c1a1886 100644
    a b  
    2525#include <rtems/score/states.h>
    2626#include <rtems/score/thread.h>
    2727#include <rtems/score/apimutex.h>
     28#include <rtems/score/sysinit.h>
    2829
    2930/*PAGE
    3031 *
    rtems_status_code rtems_region_create( 
    119120  _RTEMS_Unlock_allocator();
    120121  return return_status;
    121122}
     123
     124/**
     125 *  @brief The reference of Sysinit entry
     126 *
     127 *  Input parameters:   
     128 *    handler  -  _Region_Manager_Sysinit
     129 */
     130
     131SYSINIT_REFERENCE( _Region_Manager_Sysinit );
  • cpukit/rtems/src/rtemstimer.c

    diff --git a/cpukit/rtems/src/rtemstimer.c b/cpukit/rtems/src/rtemstimer.c
    index 8f2282a..a51934a 100644
    a b  
    1818
    1919#include <rtems/system.h>
    2020#include <rtems/config.h>
     21#include <rtems/fatal.h>
    2122#include <rtems/rtems/status.h>
    2223#include <rtems/rtems/support.h>
    2324#include <rtems/score/object.h>
     
    2526#include <rtems/rtems/timer.h>
    2627#include <rtems/score/tod.h>
    2728#include <rtems/score/watchdog.h>
     29#include <rtems/score/sysinit.h>
    2830
    2931/*PAGE
    3032 *
    void _Timer_Manager_initialization(void) 
    6264
    6365  _Timer_server = NULL;
    6466}
     67
     68/**
     69 *  @brief _Timer_Manager_temination
     70 *
     71 *  Input parameters:   NONE
     72 *
     73 *  Output parameters:  NONE
     74 */
     75
     76void _Timer_Manager_temination(void)
     77{
     78}
     79
     80/**
     81 *  @brief _Timer_Manager_Sysinit
     82 *
     83 *  Input parameters:   
     84 *    state  -  initialization or temination
     85 *
     86 *  Output parameters:  NONE
     87 */
     88
     89void _Timer_Manager_Sysinit(
     90  Sysinit_State state
     91)
     92{
     93  switch ( state ) {
     94    case SYSINIT_INITIALIZE:
     95      _Timer_Manager_initialization();
     96      break;
     97    case SYSINIT_TERMINATE:
     98      _Timer_Manager_temination();
     99      break;
     100    default:
     101      rtems_fatal_error_occurred( RTEMS_INCORRECT_STATE );
     102  }
     103}
     104
     105/**
     106 *  @brief Sysinit entry of Timer Manager
     107 *
     108 *  Input parameters:   
     109 *    handler  -  _Timer_Manager_Sysinit
     110 *    group  -  SYSINIT_GROUP_TIMER
     111 */
     112
     113SYSINIT_ENTRY( _Timer_Manager_Sysinit, SYSINIT_GROUP_TIMER );
  • cpukit/rtems/src/sem.c

    diff --git a/cpukit/rtems/src/sem.c b/cpukit/rtems/src/sem.c
    index 0917fba..c02b044 100644
    a b  
    3131
    3232#include <rtems/system.h>
    3333#include <rtems/config.h>
     34#include <rtems/fatal.h>
    3435#include <rtems/rtems/status.h>
    3536#include <rtems/rtems/support.h>
    3637#include <rtems/rtems/attr.h>
     
    4950#include <rtems/score/sysstate.h>
    5051
    5152#include <rtems/score/interr.h>
     53#include <rtems/score/sysinit.h>
    5254
    5355/*PAGE
    5456 *
    void _Semaphore_Manager_initialization(void) 
    9193#endif
    9294
    9395}
     96
     97/**
     98 *  @brief _Semaphore_Manager_temination
     99 *
     100 *  Input parameters:   NONE
     101 *
     102 *  Output parameters:  NONE
     103 */
     104
     105void _Semaphore_Manager_temination(void)
     106{
     107}
     108
     109/**
     110 *  @brief _Semaphore_Manager_Sysinit
     111 *
     112 *  Input parameters:   
     113 *    state  -  initialization or temination
     114 *
     115 *  Output parameters:  NONE
     116 */
     117
     118void _Semaphore_Manager_Sysinit(
     119  Sysinit_State state
     120)
     121{
     122  switch ( state ) {
     123    case SYSINIT_INITIALIZE:
     124      _Semaphore_Manager_initialization();
     125      break;
     126    case SYSINIT_TERMINATE:
     127      _Semaphore_Manager_temination();
     128      break;
     129    default:
     130      rtems_fatal_error_occurred( RTEMS_INCORRECT_STATE );
     131  }
     132}
     133
     134/**
     135 *  @brief Sysinit entry of Semaphore Manager
     136 *
     137 *  Input parameters:   
     138 *    handler  -  _Semaphore_Manager_Sysinit
     139 *    group  -  SYSINIT_GROUP_SEMAPHORE
     140 */
     141
     142SYSINIT_ENTRY( _Semaphore_Manager_Sysinit, SYSINIT_GROUP_SEMAPHORE );
  • cpukit/rtems/src/semcreate.c

    diff --git a/cpukit/rtems/src/semcreate.c b/cpukit/rtems/src/semcreate.c
    index fc9fb23..35a0aa0 100644
    a b  
    4848#include <rtems/score/sysstate.h>
    4949
    5050#include <rtems/score/interr.h>
     51#include <rtems/score/sysinit.h>
    5152
    5253/*PAGE
    5354 *
    rtems_status_code rtems_semaphore_create( 
    229230  _Thread_Enable_dispatch();
    230231  return RTEMS_SUCCESSFUL;
    231232}
     233
     234/**
     235 *  @brief The reference of Sysinit entry
     236 *
     237 *  Input parameters:   
     238 *    handler  -  _Semaphore_Manager_Sysinit
     239 */
     240
     241SYSINIT_REFERENCE( _Semaphore_Manager_Sysinit );
  • cpukit/rtems/src/signal.c

    diff --git a/cpukit/rtems/src/signal.c b/cpukit/rtems/src/signal.c
    index b0f5282..f3f70f4 100644
    a b  
    1717#endif
    1818
    1919#include <rtems/system.h>
     20#include <rtems/fatal.h>
    2021#include <rtems/rtems/status.h>
    2122#include <rtems/rtems/asr.h>
    2223#include <rtems/score/isr.h>
     
    2425#include <rtems/rtems/signal.h>
    2526#include <rtems/score/thread.h>
    2627#include <rtems/rtems/tasks.h>
     28#include <rtems/score/sysinit.h>
    2729
    2830/*PAGE
    2931 *
    void _Signal_Manager_initialization( void ) 
    4951  );
    5052#endif
    5153}
     54
     55/**
     56 *  @brief _Signal_Manager_temination
     57 *
     58 *  Input parameters:   NONE
     59 *
     60 *  Output parameters:  NONE
     61 */
     62
     63void _Signal_Manager_temination(void)
     64{
     65}
     66
     67/**
     68 *  @brief _Signal_Manager_Sysinit
     69 *
     70 *  Input parameters:   
     71 *    state  -  initialization or temination
     72 *
     73 *  Output parameters:  NONE
     74 */
     75
     76void _Signal_Manager_Sysinit(
     77  Sysinit_State state
     78)
     79{
     80  switch ( state ) {
     81    case SYSINIT_INITIALIZE:
     82      _Signal_Manager_initialization();
     83      break;
     84    case SYSINIT_TERMINATE:
     85      _Signal_Manager_temination();
     86      break;
     87    default:
     88      rtems_fatal_error_occurred( RTEMS_INCORRECT_STATE );
     89  }
     90}
     91
     92/**
     93 *  @brief Sysinit entry of Signal Manager
     94 *
     95 *  Input parameters:   
     96 *    handler  -  _Signal_Manager_Sysinit
     97 *    group  -  SYSINIT_GROUP_SIGNAL
     98 */
     99
     100SYSINIT_ENTRY( _Signal_Manager_Sysinit, SYSINIT_GROUP_SIGNAL );
  • cpukit/rtems/src/signalcatch.c

    diff --git a/cpukit/rtems/src/signalcatch.c b/cpukit/rtems/src/signalcatch.c
    index f1a9258..59b030b 100644
    a b  
    2424#include <rtems/rtems/signal.h>
    2525#include <rtems/score/thread.h>
    2626#include <rtems/rtems/tasks.h>
     27#include <rtems/score/sysinit.h>
    2728
    2829/*PAGE
    2930 *
    rtems_status_code rtems_signal_catch( 
    6768  _Thread_Enable_dispatch();
    6869  return RTEMS_SUCCESSFUL;
    6970}
     71
     72/**
     73 *  @brief The reference of Sysinit entry
     74 *
     75 *  Input parameters:   
     76 *    handler  -  _Signal_Manager_Sysinit
     77 */
     78
     79SYSINIT_REFERENCE( _Signal_Manager_Sysinit );
  • cpukit/rtems/src/signalsend.c

    diff --git a/cpukit/rtems/src/signalsend.c b/cpukit/rtems/src/signalsend.c
    index bf86a8d..b71ca37 100644
    a b  
    2424#include <rtems/rtems/signal.h>
    2525#include <rtems/score/thread.h>
    2626#include <rtems/rtems/tasks.h>
     27#include <rtems/score/sysinit.h>
    2728
    2829/*PAGE
    2930 *
    rtems_status_code rtems_signal_send( 
    9293
    9394  return RTEMS_INVALID_ID;
    9495}
     96
     97/**
     98 *  @brief The reference of Sysinit entry
     99 *
     100 *  Input parameters:   
     101 *    handler  -  _Signal_Manager_Sysinit
     102 */
     103
     104SYSINIT_REFERENCE( _Signal_Manager_Sysinit );
  • cpukit/rtems/src/taskcreate.c

    diff --git a/cpukit/rtems/src/taskcreate.c b/cpukit/rtems/src/taskcreate.c
    index 7ebfaa3..029f8df 100644
    a b  
    3232#include <rtems/score/apiext.h>
    3333#include <rtems/score/sysstate.h>
    3434#include <rtems/score/apimutex.h>
     35#include <rtems/score/sysinit.h>
    3536
    3637/*PAGE
    3738 *
    rtems_status_code rtems_task_create( 
    227228  _RTEMS_Unlock_allocator();
    228229  return RTEMS_SUCCESSFUL;
    229230}
     231
     232/**
     233 *  @brief The reference of Sysinit entry
     234 *
     235 *  Input parameters:   
     236 *    handler  -  _RTEMS_tasks_Manager_Sysinit
     237 */
     238
     239SYSINIT_REFERENCE( _RTEMS_tasks_Manager_Sysinit );
  • cpukit/rtems/src/tasks.c

    diff --git a/cpukit/rtems/src/tasks.c b/cpukit/rtems/src/tasks.c
    index 2a806f9..a200fa5 100644
    a b  
    1717
    1818#include <rtems/system.h>
    1919#include <rtems/config.h>
     20#include <rtems/fatal.h>
    2021#include <rtems/rtems/status.h>
    2122#include <rtems/rtems/support.h>
    2223#include <rtems/rtems/modes.h>
     
    3132#include <rtems/score/wkspace.h>
    3233#include <rtems/score/apiext.h>
    3334#include <rtems/score/sysstate.h>
     35#include <rtems/score/sysinit.h>
    3436
    3537/*PAGE
    3638 *
    void _RTEMS_tasks_Manager_initialization(void) 
    286288
    287289}
    288290
     291/**
     292 *  @brief _RTEMS_tasks_Manager_temination
     293 *
     294 *  Input parameters:   NONE
     295 *
     296 *  Output parameters:  NONE
     297 */
     298
     299void _RTEMS_tasks_Manager_temination(void)
     300{
     301}
     302
     303/**
     304 *  @brief _RTEMS_tasks_Manager_Sysinit
     305 *
     306 *  Input parameters:   
     307 *    state  -  initialization or temination
     308 *
     309 *  Output parameters:  NONE
     310 */
     311
     312void _RTEMS_tasks_Manager_Sysinit(
     313  Sysinit_State state
     314)
     315{
     316  switch ( state ) {
     317    case SYSINIT_INITIALIZE:
     318      _RTEMS_tasks_Manager_initialization();
     319      break;
     320    case SYSINIT_TERMINATE:
     321      _RTEMS_tasks_Manager_temination();
     322      break;
     323    default:
     324      rtems_fatal_error_occurred( RTEMS_INCORRECT_STATE );
     325  }
     326}
     327
     328/**
     329 *  @brief Sysinit entry of Tasks Manager
     330 *
     331 *  Input parameters:   
     332 *    handler  -  _RTEMS_tasks_Manager_Sysinit
     333 *    group  -  SYSINIT_GROUP_TASK
     334 */
     335
     336SYSINIT_ENTRY( _RTEMS_tasks_Manager_Sysinit, SYSINIT_GROUP_TASK );
     337
    289338/*PAGE
    290339 *
    291340 *  _RTEMS_tasks_Initialize_user_tasks
  • cpukit/rtems/src/timercreate.c

    diff --git a/cpukit/rtems/src/timercreate.c b/cpukit/rtems/src/timercreate.c
    index 11fc78e..b681337 100644
    a b  
    2424#include <rtems/rtems/timer.h>
    2525#include <rtems/score/tod.h>
    2626#include <rtems/score/watchdog.h>
     27#include <rtems/score/sysinit.h>
    2728
    2829/*PAGE
    2930 *
    rtems_status_code rtems_timer_create( 
    7677  _Thread_Enable_dispatch();
    7778  return RTEMS_SUCCESSFUL;
    7879}
     80
     81/**
     82 *  @brief The reference of Sysinit entry
     83 *
     84 *  Input parameters:   
     85 *    handler  -  _Timer_Manager_Sysinit
     86 */
     87
     88SYSINIT_REFERENCE( _Timer_Manager_Sysinit );
  • cpukit/sapi/src/rtemsapi.c

    diff --git a/cpukit/sapi/src/rtemsapi.c b/cpukit/sapi/src/rtemsapi.c
    index 89c6643..c8abfdc 100644
    a b  
    4444#include <rtems/rtems/sem.h>
    4545#include <rtems/rtems/signal.h>
    4646#include <rtems/rtems/timer.h>
     47#include <rtems/score/sysinit.h>
    4748
    4849Objects_Information *_RTEMS_Objects[ OBJECTS_RTEMS_CLASSES_LAST + 1 ];
    4950
    void _RTEMS_API_Initialize(void) 
    6667    _Multiprocessing_Manager_initialization();
    6768  #endif
    6869
     70/*
    6971  _RTEMS_tasks_Manager_initialization();
    7072  _Timer_Manager_initialization();
    7173  _Signal_Manager_initialization();
    void _RTEMS_API_Initialize(void) 
    7779  _Dual_ported_memory_Manager_initialization();
    7880  _Rate_monotonic_Manager_initialization();
    7981  _Barrier_Manager_initialization();
     82*/
     83  /*
     84    * Initialize the request managers in sequenced order
     85    * with the Sysinit API.
     86    */
     87  _Sysinit_Iterate( SYSINIT_INITIALIZE );
     88
    8089}
    8190
    8291/* end of file */