-
diff --git a/c/src/optman/rtems/no-barrier.c b/c/src/optman/rtems/no-barrier.c
index 9d855d3..7704adc 100644
a
|
b
|
|
17 | 17 | #include <rtems/score/object.h> |
18 | 18 | #include <rtems/rtems/barrier.h> |
19 | 19 | |
| 20 | #if 0 |
20 | 21 | void _Barrier_Manager_initialization(void) |
21 | 22 | { |
22 | 23 | } |
| 24 | #endif |
-
diff --git a/c/src/optman/rtems/no-dpmem.c b/c/src/optman/rtems/no-dpmem.c
index 06dc8d0..548c9e9 100644
a
|
b
|
|
21 | 21 | #include <rtems/rtems/types.h> |
22 | 22 | #include <rtems/rtems/dpmem.h> |
23 | 23 | |
| 24 | #if 0 |
24 | 25 | void _Dual_ported_memory_Manager_initialization(void) |
25 | 26 | { |
26 | 27 | } |
| 28 | #endif |
-
diff --git a/c/src/optman/rtems/no-event.c b/c/src/optman/rtems/no-event.c
index 4a24366..8a4ad5a 100644
a
|
b
|
|
21 | 21 | #include <rtems/score/thread.h> |
22 | 22 | #include <rtems/score/interr.h> |
23 | 23 | |
| 24 | #if 0 |
24 | 25 | void _Event_Manager_initialization(void) |
25 | 26 | { |
26 | 27 | } |
27 | | |
| 28 | #endif |
-
diff --git a/c/src/optman/rtems/no-mp.c b/c/src/optman/rtems/no-mp.c
index 88b9b6c..87cb0fd 100644
a
|
b
|
|
30 | 30 | #include <rtems/score/sysstate.h> |
31 | 31 | #include <rtems/score/interr.h> |
32 | 32 | |
| 33 | #if 0 |
33 | 34 | void _Multiprocessing_Manager_initialization(void) |
34 | 35 | { |
35 | 36 | } |
36 | 37 | #endif |
| 38 | |
| 39 | #endif |
-
diff --git a/c/src/optman/rtems/no-msg.c b/c/src/optman/rtems/no-msg.c
index 1921831..e232d5f 100644
a
|
b
|
|
25 | 25 | #include <rtems/score/wkspace.h> |
26 | 26 | #include <rtems/score/interr.h> |
27 | 27 | |
| 28 | #if 0 |
28 | 29 | void _Message_queue_Manager_initialization(void) |
29 | 30 | { |
30 | 31 | } |
| 32 | #endif |
-
diff --git a/c/src/optman/rtems/no-part.c b/c/src/optman/rtems/no-part.c
index 32cb4af..2f58e2c 100644
a
|
b
|
|
20 | 20 | #include <rtems/score/thread.h> |
21 | 21 | #include <rtems/score/interr.h> |
22 | 22 | |
| 23 | #if 0 |
23 | 24 | void _Partition_Manager_initialization(void) |
24 | 25 | { |
25 | 26 | } |
| 27 | #endif |
-
diff --git a/c/src/optman/rtems/no-region.c b/c/src/optman/rtems/no-region.c
index dbcf575..9153798 100644
a
|
b
|
|
21 | 21 | #include <rtems/score/thread.h> |
22 | 22 | #include <rtems/score/interr.h> |
23 | 23 | |
| 24 | #if 0 |
24 | 25 | void _Region_Manager_initialization(void) |
25 | 26 | { |
26 | 27 | } |
| 28 | #endif |
-
diff --git a/c/src/optman/rtems/no-rtmon.c b/c/src/optman/rtems/no-rtmon.c
index 66f1c40..9ecdb75 100644
a
|
b
|
|
22 | 22 | #include <rtems/rtems/types.h> |
23 | 23 | #include <rtems/rtems/ratemon.h> |
24 | 24 | |
| 25 | #if 0 |
25 | 26 | void _Rate_monotonic_Manager_initialization(void) |
26 | 27 | { |
27 | 28 | } |
| 29 | #endif |
-
diff --git a/c/src/optman/rtems/no-sem.c b/c/src/optman/rtems/no-sem.c
index 522cf7b..7fcca7d 100644
a
|
b
|
|
24 | 24 | #include <rtems/score/threadq.h> |
25 | 25 | #include <rtems/score/interr.h> |
26 | 26 | |
| 27 | #if 0 |
27 | 28 | void _Semaphore_Manager_initialization(void) |
28 | 29 | { |
29 | 30 | } |
30 | | |
| 31 | #endif |
-
diff --git a/c/src/optman/rtems/no-signal.c b/c/src/optman/rtems/no-signal.c
index 95b13d2..664af2d 100644
a
|
b
|
|
22 | 22 | #include <rtems/rtems/modes.h> |
23 | 23 | #include <rtems/rtems/signal.h> |
24 | 24 | |
| 25 | #if 0 |
25 | 26 | void _Signal_Manager_initialization(void) |
26 | 27 | { |
27 | 28 | } |
28 | | |
| 29 | #endif |
-
diff --git a/c/src/optman/rtems/no-timer.c b/c/src/optman/rtems/no-timer.c
index 4e7dc15..9934a5b 100644
a
|
b
|
|
23 | 23 | #include <rtems/rtems/types.h> |
24 | 24 | #include <rtems/rtems/timer.h> |
25 | 25 | |
| 26 | #if 0 |
26 | 27 | void _Timer_Manager_initialization(void) |
27 | 28 | { |
28 | 29 | } |
29 | | |
| 30 | #endif |
-
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" { |
55 | 55 | #include <rtems/rtems/status.h> |
56 | 56 | #include <rtems/score/object.h> |
57 | 57 | #include <rtems/score/corebarrier.h> |
| 58 | #include <rtems/score/sysinit.h> |
58 | 59 | |
59 | 60 | /** |
60 | 61 | * This type defines the control block used to manage each barrier. |
… |
… |
RTEMS_BARRIER_EXTERN Objects_Information _Barrier_Information; |
82 | 83 | void _Barrier_Manager_initialization(void); |
83 | 84 | |
84 | 85 | /** |
| 86 | * @brief _Barrier_Manager_Sysinit |
| 87 | * |
| 88 | * This routine performs sysinit sequenced initialization or temination |
| 89 | * necessary for this manager. |
| 90 | */ |
| 91 | void _Barrier_Manager_Sysinit( |
| 92 | Sysinit_State state |
| 93 | ); |
| 94 | |
| 95 | /** |
85 | 96 | * @brief rtems_barrier_create |
86 | 97 | * |
87 | 98 | * This routine implements the rtems_barrier_create directive. The |
-
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" { |
44 | 44 | #endif |
45 | 45 | |
46 | 46 | #include <rtems/score/object.h> |
| 47 | #include <rtems/score/sysinit.h> |
47 | 48 | #include <rtems/rtems/support.h> |
48 | 49 | #include <rtems/rtems/status.h> |
49 | 50 | |
… |
… |
RTEMS_DPMEM_EXTERN Objects_Information _Dual_ported_memory_Information; |
86 | 87 | void _Dual_ported_memory_Manager_initialization(void); |
87 | 88 | |
88 | 89 | /** |
| 90 | * @brief _Dual_ported_memory_Manager_Sysinit |
| 91 | * |
| 92 | * This routine performs sysinit sequenced initialization or temination |
| 93 | * necessary for this manager. |
| 94 | */ |
| 95 | void _Dual_ported_memory_Manager_Sysinit( |
| 96 | Sysinit_State state |
| 97 | ); |
| 98 | |
| 99 | /** |
89 | 100 | * @brief rtems_port_create |
90 | 101 | * |
91 | 102 | * This routine implements the rtems_port_create directive. The port |
-
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" { |
46 | 46 | #include <rtems/score/thread.h> |
47 | 47 | #include <rtems/score/threadsync.h> |
48 | 48 | #include <rtems/score/watchdog.h> |
| 49 | #include <rtems/score/sysinit.h> |
49 | 50 | #include <rtems/rtems/eventset.h> |
50 | 51 | |
51 | 52 | /** |
… |
… |
extern "C" { |
71 | 72 | void _Event_Manager_initialization( void ); |
72 | 73 | |
73 | 74 | /** |
| 75 | * @brief _Event_Manager_Sysinit |
| 76 | * |
| 77 | * This routine performs sysinit sequenced initialization or temination |
| 78 | * necessary for this manager. |
| 79 | */ |
| 80 | void _Event_Manager_Sysinit( |
| 81 | Sysinit_State state |
| 82 | ); |
| 83 | |
| 84 | /** |
74 | 85 | * @brief rtems_event_send |
75 | 86 | * |
76 | 87 | * This routine implements the rtems_event_send directive. It sends |
-
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" { |
51 | 51 | #include <rtems/score/object.h> |
52 | 52 | #include <rtems/rtems/attr.h> |
53 | 53 | #include <rtems/score/coremsg.h> |
| 54 | #include <rtems/score/sysinit.h> |
54 | 55 | |
55 | 56 | /** |
56 | 57 | * @defgroup ClassicMessageQueue Message Queues |
… |
… |
RTEMS_MESSAGE_EXTERN Objects_Information _Message_queue_Information; |
106 | 107 | void _Message_queue_Manager_initialization(void); |
107 | 108 | |
108 | 109 | /** |
| 110 | * @brief _Message_queue_Manager_Sysinit |
| 111 | * |
| 112 | * This routine performs sysinit sequenced initialization or temination |
| 113 | * necessary for this manager. |
| 114 | */ |
| 115 | void _Message_queue_Manager_Sysinit( |
| 116 | Sysinit_State state |
| 117 | ); |
| 118 | |
| 119 | /** |
109 | 120 | * @brief rtems_message_queue_create |
110 | 121 | * |
111 | 122 | * This routine implements the rtems_message_queue_create directive. The |
-
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" { |
48 | 48 | #include <rtems/rtems/status.h> |
49 | 49 | #include <rtems/rtems/support.h> |
50 | 50 | #include <rtems/rtems/types.h> |
| 51 | #include <rtems/score/sysinit.h> |
51 | 52 | |
52 | 53 | /** |
53 | 54 | * @defgroup ClassicPart Partitions |
… |
… |
RTEMS_PART_EXTERN Objects_Information _Partition_Information; |
93 | 94 | void _Partition_Manager_initialization(void); |
94 | 95 | |
95 | 96 | /** |
| 97 | * @brief _Partition_Manager_Sysinit |
| 98 | * |
| 99 | * This routine performs sysinit sequenced initialization or temination |
| 100 | * necessary for this manager. |
| 101 | */ |
| 102 | void _Partition_Manager_Sysinit( |
| 103 | Sysinit_State state |
| 104 | ); |
| 105 | |
| 106 | /** |
96 | 107 | * @brief rtems_partition_create |
97 | 108 | * |
98 | 109 | * This routine implements the rtems_partition_create directive. The |
-
diff --git a/cpukit/rtems/include/rtems/rtems/ratemon.h b/cpukit/rtems/include/rtems/rtems/ratemon.h
index aa18829..be0e382 100644
a
|
b
|
|
39 | 39 | #endif |
40 | 40 | |
41 | 41 | #include <rtems/bspIo.h> |
| 42 | #include <rtems/score/sysinit.h> |
42 | 43 | |
43 | 44 | /** |
44 | 45 | * @defgroup ClassicRateMon Rate Monotonic Scheduler |
… |
… |
RTEMS_RATEMON_EXTERN Objects_Information _Rate_monotonic_Information; |
275 | 276 | void _Rate_monotonic_Manager_initialization(void); |
276 | 277 | |
277 | 278 | /** |
| 279 | * @brief _Rate_monotonic_Manager_Sysinit |
| 280 | * |
| 281 | * This routine performs sysinit sequenced initialization or temination |
| 282 | * necessary for this manager. |
| 283 | */ |
| 284 | void _Rate_monotonic_Manager_Sysinit( |
| 285 | Sysinit_State state |
| 286 | ); |
| 287 | |
| 288 | /** |
278 | 289 | * @brief rtems_rate_monotonic_create |
279 | 290 | * |
280 | 291 | * This routine implements the rate_monotonic_create directive. The |
-
diff --git a/cpukit/rtems/include/rtems/rtems/region.h b/cpukit/rtems/include/rtems/rtems/region.h
index acd1e76..785e331 100644
a
|
b
|
|
36 | 36 | #include <rtems/rtems/status.h> |
37 | 37 | #include <rtems/rtems/support.h> |
38 | 38 | #include <rtems/rtems/types.h> |
| 39 | #include <rtems/score/sysinit.h> |
39 | 40 | |
40 | 41 | /** |
41 | 42 | * @defgroup ClassicRegion Regions |
… |
… |
RTEMS_REGION_EXTERN Objects_Information _Region_Information; |
91 | 92 | void _Region_Manager_initialization(void); |
92 | 93 | |
93 | 94 | /** |
| 95 | * @brief _Region_Manager_Sysinit |
| 96 | * |
| 97 | * This routine performs sysinit sequenced initialization or temination |
| 98 | * necessary for this manager. |
| 99 | */ |
| 100 | void _Region_Manager_Sysinit( |
| 101 | Sysinit_State state |
| 102 | ); |
| 103 | |
| 104 | /** |
94 | 105 | * @brief rtems_region_create |
95 | 106 | * |
96 | 107 | * This routine implements the rtems_region_create directive. The |
-
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" { |
50 | 50 | #include <rtems/score/coremutex.h> |
51 | 51 | #include <rtems/score/object.h> |
52 | 52 | #include <rtems/score/coresem.h> |
| 53 | #include <rtems/score/sysinit.h> |
53 | 54 | |
54 | 55 | /** |
55 | 56 | * @defgroup ClassicSem Semaphores |
… |
… |
RTEMS_SEM_EXTERN Objects_Information _Semaphore_Information; |
113 | 114 | void _Semaphore_Manager_initialization(void); |
114 | 115 | |
115 | 116 | /** |
| 117 | * @brief _Semaphore_Manager_Sysinit |
| 118 | * |
| 119 | * This routine performs sysinit sequenced initialization or temination |
| 120 | * necessary for this manager. |
| 121 | */ |
| 122 | void _Semaphore_Manager_Sysinit( |
| 123 | Sysinit_State state |
| 124 | ); |
| 125 | |
| 126 | /** |
116 | 127 | * @brief rtems_semaphore_create |
117 | 128 | * |
118 | 129 | * This routine implements the rtems_semaphore_create directive. The |
-
diff --git a/cpukit/rtems/include/rtems/rtems/signal.h b/cpukit/rtems/include/rtems/rtems/signal.h
index 4897807..b3caa24 100644
a
|
b
|
|
38 | 38 | #include <rtems/score/object.h> |
39 | 39 | #include <rtems/rtems/status.h> |
40 | 40 | #include <rtems/rtems/types.h> |
| 41 | #include <rtems/score/sysinit.h> |
41 | 42 | |
42 | 43 | #ifdef __cplusplus |
43 | 44 | extern "C" { |
… |
… |
extern "C" { |
50 | 51 | void _Signal_Manager_initialization( void ); |
51 | 52 | |
52 | 53 | /** |
| 54 | * @brief _Signal_Manager_Sysinit |
| 55 | * |
| 56 | * This routine performs sysinit sequenced initialization or temination |
| 57 | * necessary for this manager. |
| 58 | */ |
| 59 | void _Signal_Manager_Sysinit( |
| 60 | Sysinit_State state |
| 61 | ); |
| 62 | |
| 63 | /** |
53 | 64 | * @brief rtems_signal_catch |
54 | 65 | * |
55 | 66 | * This routine implements the rtems_signal_catch directive. This directive |
-
diff --git a/cpukit/rtems/include/rtems/rtems/tasks.h b/cpukit/rtems/include/rtems/rtems/tasks.h
index a3f5e35..ee6929a 100644
a
|
b
|
|
38 | 38 | #include <rtems/score/object.h> |
39 | 39 | #include <rtems/score/states.h> |
40 | 40 | #include <rtems/score/thread.h> |
| 41 | #include <rtems/score/sysinit.h> |
41 | 42 | #include <rtems/rtems/types.h> |
42 | 43 | #include <rtems/rtems/eventset.h> |
43 | 44 | #include <rtems/rtems/asr.h> |
… |
… |
extern void (*_RTEMS_tasks_Initialize_user_tasks_p)(void); |
246 | 247 | void _RTEMS_tasks_Manager_initialization(void); |
247 | 248 | |
248 | 249 | /** |
| 250 | * @brief _RTEMS_tasks_Manager_Sysinit |
| 251 | * |
| 252 | * This routine performs sysinit sequenced initialization or temination |
| 253 | * necessary for this manager. |
| 254 | */ |
| 255 | void _RTEMS_tasks_Manager_Sysinit( |
| 256 | Sysinit_State state |
| 257 | ); |
| 258 | |
| 259 | /** |
249 | 260 | * @brief rtems_task_create |
250 | 261 | * |
251 | 262 | * This routine implements the rtems_task_create directive. The task |
-
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" { |
57 | 57 | #include <rtems/score/chain.h> |
58 | 58 | #include <rtems/rtems/clock.h> |
59 | 59 | #include <rtems/rtems/attr.h> |
| 60 | #include <rtems/score/sysinit.h> |
60 | 61 | |
61 | 62 | /** |
62 | 63 | * @defgroup ClassicTimer Timers |
… |
… |
RTEMS_TIMER_EXTERN Objects_Information _Timer_Information; |
228 | 229 | void _Timer_Manager_initialization(void); |
229 | 230 | |
230 | 231 | /** |
| 232 | * @brief _Timer_Manager_Sysinit |
| 233 | * |
| 234 | * This routine performs sysinit sequenced initialization or temination |
| 235 | * necessary for this manager. |
| 236 | */ |
| 237 | void _Timer_Manager_Sysinit( |
| 238 | Sysinit_State state |
| 239 | ); |
| 240 | |
| 241 | /** |
231 | 242 | * @brief rtems_timer_create |
232 | 243 | * |
233 | 244 | * This routine implements the rtems_timer_create directive. The |
-
diff --git a/cpukit/rtems/src/barrier.c b/cpukit/rtems/src/barrier.c
index ed4c594..e3c426d 100644
a
|
b
|
|
29 | 29 | |
30 | 30 | #include <rtems/system.h> |
31 | 31 | #include <rtems/config.h> |
| 32 | #include <rtems/fatal.h> |
32 | 33 | #include <rtems/rtems/status.h> |
33 | 34 | #include <rtems/rtems/support.h> |
34 | 35 | #include <rtems/score/object.h> |
… |
… |
|
36 | 37 | #if defined(RTEMS_MULTIPROCESSING) |
37 | 38 | #include <rtems/score/mpci.h> |
38 | 39 | #endif |
| 40 | #include <rtems/score/sysinit.h> |
39 | 41 | |
40 | 42 | /** |
41 | 43 | * @brief _Barrier_Manager_initialization |
… |
… |
void _Barrier_Manager_initialization(void) |
63 | 65 | #endif |
64 | 66 | ); |
65 | 67 | } |
| 68 | |
| 69 | /** |
| 70 | * @brief _Barrier_Manager_temination |
| 71 | * |
| 72 | * Input parameters: NONE |
| 73 | * |
| 74 | * Output parameters: NONE |
| 75 | */ |
| 76 | |
| 77 | void _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 | |
| 90 | void _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 | |
| 114 | SYSINIT_ENTRY( _Barrier_Manager_Sysinit, SYSINIT_GROUP_BARRIER ); |
-
diff --git a/cpukit/rtems/src/barriercreate.c b/cpukit/rtems/src/barriercreate.c
index 88e47bb..bc72f21 100644
a
|
b
|
|
22 | 22 | #include <rtems/score/isr.h> |
23 | 23 | #include <rtems/score/object.h> |
24 | 24 | #include <rtems/rtems/barrier.h> |
| 25 | #include <rtems/score/sysinit.h> |
25 | 26 | |
26 | 27 | /* |
27 | 28 | * rtems_barrier_create |
… |
… |
rtems_status_code rtems_barrier_create( |
90 | 91 | _Thread_Enable_dispatch(); |
91 | 92 | return RTEMS_SUCCESSFUL; |
92 | 93 | } |
| 94 | |
| 95 | /** |
| 96 | * @brief The reference of Sysinit entry |
| 97 | * |
| 98 | * Input parameters: |
| 99 | * handler - _Barrier_Manager_Sysinit |
| 100 | */ |
| 101 | |
| 102 | SYSINIT_REFERENCE( _Barrier_Manager_Sysinit ); |
-
diff --git a/cpukit/rtems/src/dpmem.c b/cpukit/rtems/src/dpmem.c
index 05f32ec..460a72b 100644
a
|
b
|
|
17 | 17 | |
18 | 18 | #include <rtems/system.h> |
19 | 19 | #include <rtems/config.h> |
| 20 | #include <rtems/fatal.h> |
20 | 21 | #include <rtems/rtems/status.h> |
21 | 22 | #include <rtems/rtems/support.h> |
22 | 23 | #include <rtems/score/address.h> |
23 | 24 | #include <rtems/rtems/dpmem.h> |
24 | 25 | #include <rtems/score/object.h> |
25 | 26 | #include <rtems/score/thread.h> |
| 27 | #include <rtems/score/sysinit.h> |
26 | 28 | |
27 | 29 | /*PAGE |
28 | 30 | * |
… |
… |
void _Dual_ported_memory_Manager_initialization(void) |
55 | 57 | #endif |
56 | 58 | ); |
57 | 59 | } |
| 60 | |
| 61 | /** |
| 62 | * @brief _Dual_ported_memory_Manager_temination |
| 63 | * |
| 64 | * Input parameters: NONE |
| 65 | * |
| 66 | * Output parameters: NONE |
| 67 | */ |
| 68 | |
| 69 | void _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 | |
| 82 | void _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 | |
| 106 | SYSINIT_ENTRY( _Dual_ported_memory_Manager_Sysinit, SYSINIT_GROUP_DPMEM ); |
-
diff --git a/cpukit/rtems/src/dpmemcreate.c b/cpukit/rtems/src/dpmemcreate.c
index e083ba9..82948d0 100644
a
|
b
|
|
23 | 23 | #include <rtems/score/object.h> |
24 | 24 | #include <rtems/score/thread.h> |
25 | 25 | #include <rtems/rtems/dpmem.h> |
| 26 | #include <rtems/score/sysinit.h> |
26 | 27 | |
27 | 28 | /*PAGE |
28 | 29 | * |
… |
… |
rtems_status_code rtems_port_create( |
86 | 87 | _Thread_Enable_dispatch(); |
87 | 88 | return RTEMS_SUCCESSFUL; |
88 | 89 | } |
| 90 | |
| 91 | /** |
| 92 | * @brief The reference of Sysinit entry |
| 93 | * |
| 94 | * Input parameters: |
| 95 | * handler - _Dual_ported_memory_Manager_Sysinit |
| 96 | */ |
| 97 | |
| 98 | SYSINIT_REFERENCE( _Dual_ported_memory_Manager_Sysinit ); |
-
diff --git a/cpukit/rtems/src/event.c b/cpukit/rtems/src/event.c
index b19edd5..902ce74 100644
a
|
b
|
|
16 | 16 | #endif |
17 | 17 | |
18 | 18 | #include <rtems/system.h> |
| 19 | #include <rtems/fatal.h> |
19 | 20 | #include <rtems/rtems/status.h> |
20 | 21 | #include <rtems/rtems/event.h> |
21 | 22 | #include <rtems/score/isr.h> |
… |
… |
|
24 | 25 | #include <rtems/score/states.h> |
25 | 26 | #include <rtems/score/thread.h> |
26 | 27 | #include <rtems/rtems/tasks.h> |
| 28 | #include <rtems/score/sysinit.h> |
27 | 29 | |
28 | 30 | /*PAGE |
29 | 31 | * |
… |
… |
void _Event_Manager_initialization( void ) |
46 | 48 | _MPCI_Register_packet_processor( MP_PACKET_EVENT, _Event_MP_Process_packet ); |
47 | 49 | #endif |
48 | 50 | } |
| 51 | |
| 52 | /** |
| 53 | * @brief _Event_Manager_temination |
| 54 | * |
| 55 | * Input parameters: NONE |
| 56 | * |
| 57 | * Output parameters: NONE |
| 58 | */ |
| 59 | |
| 60 | void _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 | |
| 73 | void _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 | |
| 97 | SYSINIT_ENTRY( _Event_Manager_Sysinit, SYSINIT_GROUP_EVENT ); |
-
diff --git a/cpukit/rtems/src/eventreceive.c b/cpukit/rtems/src/eventreceive.c
index 6440211..079bf33 100644
a
|
b
|
|
24 | 24 | #include <rtems/score/states.h> |
25 | 25 | #include <rtems/score/thread.h> |
26 | 26 | #include <rtems/rtems/tasks.h> |
| 27 | #include <rtems/score/sysinit.h> |
27 | 28 | |
28 | 29 | /*PAGE |
29 | 30 | * |
… |
… |
rtems_status_code rtems_event_receive( |
67 | 68 | _Thread_Enable_dispatch(); |
68 | 69 | return( _Thread_Executing->Wait.return_code ); |
69 | 70 | } |
| 71 | |
| 72 | /** |
| 73 | * @brief The reference of Sysinit entry |
| 74 | * |
| 75 | * Input parameters: |
| 76 | * handler - _Event_Manager_Sysinit |
| 77 | */ |
| 78 | |
| 79 | SYSINIT_REFERENCE( _Event_Manager_Sysinit ); |
-
diff --git a/cpukit/rtems/src/eventsend.c b/cpukit/rtems/src/eventsend.c
index 5236477..f8be407 100644
a
|
b
|
|
24 | 24 | #include <rtems/score/states.h> |
25 | 25 | #include <rtems/score/thread.h> |
26 | 26 | #include <rtems/rtems/tasks.h> |
| 27 | #include <rtems/score/sysinit.h> |
27 | 28 | |
28 | 29 | /*PAGE |
29 | 30 | * |
… |
… |
rtems_status_code rtems_event_send( |
76 | 77 | |
77 | 78 | return RTEMS_INVALID_ID; |
78 | 79 | } |
| 80 | |
| 81 | /** |
| 82 | * @brief The reference of Sysinit entry |
| 83 | * |
| 84 | * Input parameters: |
| 85 | * handler - _Event_Manager_Sysinit |
| 86 | */ |
| 87 | |
| 88 | SYSINIT_REFERENCE( _Event_Manager_Sysinit ); |
-
diff --git a/cpukit/rtems/src/msg.c b/cpukit/rtems/src/msg.c
index fd718d5..5d72cc0 100644
a
|
b
|
|
18 | 18 | |
19 | 19 | #include <rtems/system.h> |
20 | 20 | #include <rtems/config.h> |
| 21 | #include <rtems/fatal.h> |
21 | 22 | #include <rtems/score/sysstate.h> |
22 | 23 | #include <rtems/score/chain.h> |
23 | 24 | #include <rtems/score/isr.h> |
… |
… |
|
34 | 35 | #include <rtems/rtems/message.h> |
35 | 36 | #include <rtems/rtems/options.h> |
36 | 37 | #include <rtems/rtems/support.h> |
| 38 | #include <rtems/score/sysinit.h> |
37 | 39 | |
38 | 40 | /*PAGE |
39 | 41 | * |
… |
… |
void _Message_queue_Manager_initialization(void) |
79 | 81 | #endif |
80 | 82 | |
81 | 83 | } |
| 84 | |
| 85 | /** |
| 86 | * @brief _Message_queue_Manager_temination |
| 87 | * |
| 88 | * Input parameters: NONE |
| 89 | * |
| 90 | * Output parameters: NONE |
| 91 | */ |
| 92 | |
| 93 | void _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 | |
| 106 | void _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 | |
| 130 | SYSINIT_ENTRY( _Message_queue_Manager_Sysinit, SYSINIT_GROUP_MESSAGE ); |
-
diff --git a/cpukit/rtems/src/msgqcreate.c b/cpukit/rtems/src/msgqcreate.c
index b8eece3..9d29539 100644
a
|
b
|
|
33 | 33 | #include <rtems/rtems/message.h> |
34 | 34 | #include <rtems/rtems/options.h> |
35 | 35 | #include <rtems/rtems/support.h> |
| 36 | #include <rtems/score/sysinit.h> |
36 | 37 | |
37 | 38 | /*PAGE |
38 | 39 | * |
… |
… |
rtems_status_code rtems_message_queue_create( |
163 | 164 | _Thread_Enable_dispatch(); |
164 | 165 | return RTEMS_SUCCESSFUL; |
165 | 166 | } |
| 167 | |
| 168 | /** |
| 169 | * @brief The reference of Sysinit entry |
| 170 | * |
| 171 | * Input parameters: |
| 172 | * handler - _Message_queue_Manager_Sysinit |
| 173 | */ |
| 174 | |
| 175 | SYSINIT_REFERENCE( _Message_queue_Manager_Sysinit ); |
-
diff --git a/cpukit/rtems/src/part.c b/cpukit/rtems/src/part.c
index 7b59823..bbf385f 100644
a
|
b
|
|
17 | 17 | |
18 | 18 | #include <rtems/system.h> |
19 | 19 | #include <rtems/config.h> |
| 20 | #include <rtems/fatal.h> |
20 | 21 | #include <rtems/rtems/status.h> |
21 | 22 | #include <rtems/rtems/support.h> |
22 | 23 | #include <rtems/score/address.h> |
… |
… |
|
24 | 25 | #include <rtems/rtems/part.h> |
25 | 26 | #include <rtems/score/thread.h> |
26 | 27 | #include <rtems/score/sysstate.h> |
| 28 | #include <rtems/score/sysinit.h> |
27 | 29 | |
28 | 30 | /*PAGE |
29 | 31 | * |
… |
… |
void _Partition_Manager_initialization(void) |
67 | 69 | #endif |
68 | 70 | |
69 | 71 | } |
| 72 | |
| 73 | /** |
| 74 | * @brief _Partition_Manager_temination |
| 75 | * |
| 76 | * Input parameters: NONE |
| 77 | * |
| 78 | * Output parameters: NONE |
| 79 | */ |
| 80 | |
| 81 | void _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 | |
| 94 | void _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 | |
| 118 | SYSINIT_ENTRY( _Partition_Manager_Sysinit, SYSINIT_GROUP_PARTITION ); |
-
diff --git a/cpukit/rtems/src/partcreate.c b/cpukit/rtems/src/partcreate.c
index 3bcfc12..9e8e50c 100644
a
|
b
|
|
24 | 24 | #include <rtems/rtems/part.h> |
25 | 25 | #include <rtems/score/thread.h> |
26 | 26 | #include <rtems/score/sysstate.h> |
| 27 | #include <rtems/score/sysinit.h> |
27 | 28 | |
28 | 29 | /*PAGE |
29 | 30 | * |
… |
… |
rtems_status_code rtems_partition_create( |
127 | 128 | _Thread_Enable_dispatch(); |
128 | 129 | return RTEMS_SUCCESSFUL; |
129 | 130 | } |
| 131 | |
| 132 | /** |
| 133 | * @brief The reference of Sysinit entry |
| 134 | * |
| 135 | * Input parameters: |
| 136 | * handler - _Partition_Manager_Sysinit |
| 137 | */ |
| 138 | |
| 139 | SYSINIT_REFERENCE( _Partition_Manager_Sysinit ); |
-
diff --git a/cpukit/rtems/src/ratemon.c b/cpukit/rtems/src/ratemon.c
index 461a336..4965467 100644
a
|
b
|
|
18 | 18 | |
19 | 19 | #include <rtems/system.h> |
20 | 20 | #include <rtems/config.h> |
| 21 | #include <rtems/fatal.h> |
21 | 22 | #include <rtems/rtems/status.h> |
22 | 23 | #include <rtems/rtems/support.h> |
23 | 24 | #include <rtems/score/isr.h> |
24 | 25 | #include <rtems/score/object.h> |
25 | 26 | #include <rtems/rtems/ratemon.h> |
26 | 27 | #include <rtems/score/thread.h> |
| 28 | #include <rtems/score/sysinit.h> |
27 | 29 | |
28 | 30 | /*PAGE |
29 | 31 | * |
… |
… |
void _Rate_monotonic_Manager_initialization(void) |
58 | 60 | #endif |
59 | 61 | ); |
60 | 62 | } |
| 63 | |
| 64 | /** |
| 65 | * @brief _Rate_monotonic_Manager_temination |
| 66 | * |
| 67 | * Input parameters: NONE |
| 68 | * |
| 69 | * Output parameters: NONE |
| 70 | */ |
| 71 | |
| 72 | void _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 | |
| 85 | void _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 | |
| 109 | SYSINIT_ENTRY( _Rate_monotonic_Manager_Sysinit, SYSINIT_GROUP_RATEMON ); |
-
diff --git a/cpukit/rtems/src/ratemoncreate.c b/cpukit/rtems/src/ratemoncreate.c
index a31c919..e20cc08 100644
a
|
b
|
|
22 | 22 | #include <rtems/score/object.h> |
23 | 23 | #include <rtems/rtems/ratemon.h> |
24 | 24 | #include <rtems/score/thread.h> |
| 25 | #include <rtems/score/sysinit.h> |
25 | 26 | |
26 | 27 | /*PAGE |
27 | 28 | * |
… |
… |
rtems_status_code rtems_rate_monotonic_create( |
79 | 80 | _Thread_Enable_dispatch(); |
80 | 81 | return RTEMS_SUCCESSFUL; |
81 | 82 | } |
| 83 | |
| 84 | /** |
| 85 | * @brief The reference of Sysinit entry |
| 86 | * |
| 87 | * Input parameters: |
| 88 | * handler - _Rate_monotonic_Manager_Sysinit |
| 89 | */ |
| 90 | |
| 91 | SYSINIT_REFERENCE( _Rate_monotonic_Manager_Sysinit ); |
-
diff --git a/cpukit/rtems/src/region.c b/cpukit/rtems/src/region.c
index f0d516a..ade5446 100644
a
|
b
|
|
18 | 18 | |
19 | 19 | #include <rtems/system.h> |
20 | 20 | #include <rtems/config.h> |
| 21 | #include <rtems/fatal.h> |
21 | 22 | #include <rtems/rtems/status.h> |
22 | 23 | #include <rtems/rtems/support.h> |
23 | 24 | #include <rtems/score/object.h> |
… |
… |
|
26 | 27 | #include <rtems/score/states.h> |
27 | 28 | #include <rtems/score/thread.h> |
28 | 29 | #include <rtems/score/apimutex.h> |
| 30 | #include <rtems/score/sysinit.h> |
29 | 31 | |
30 | 32 | /*PAGE |
31 | 33 | * |
… |
… |
void _Region_Manager_initialization(void) |
68 | 70 | #endif |
69 | 71 | |
70 | 72 | } |
| 73 | |
| 74 | /** |
| 75 | * @brief _Region_Manager_temination |
| 76 | * |
| 77 | * Input parameters: NONE |
| 78 | * |
| 79 | * Output parameters: NONE |
| 80 | */ |
| 81 | |
| 82 | void _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 | |
| 95 | void _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 | |
| 119 | SYSINIT_ENTRY( _Region_Manager_Sysinit, SYSINIT_GROUP_REGION ); |
-
diff --git a/cpukit/rtems/src/regioncreate.c b/cpukit/rtems/src/regioncreate.c
index 0161df4..c1a1886 100644
a
|
b
|
|
25 | 25 | #include <rtems/score/states.h> |
26 | 26 | #include <rtems/score/thread.h> |
27 | 27 | #include <rtems/score/apimutex.h> |
| 28 | #include <rtems/score/sysinit.h> |
28 | 29 | |
29 | 30 | /*PAGE |
30 | 31 | * |
… |
… |
rtems_status_code rtems_region_create( |
119 | 120 | _RTEMS_Unlock_allocator(); |
120 | 121 | return return_status; |
121 | 122 | } |
| 123 | |
| 124 | /** |
| 125 | * @brief The reference of Sysinit entry |
| 126 | * |
| 127 | * Input parameters: |
| 128 | * handler - _Region_Manager_Sysinit |
| 129 | */ |
| 130 | |
| 131 | SYSINIT_REFERENCE( _Region_Manager_Sysinit ); |
-
diff --git a/cpukit/rtems/src/rtemstimer.c b/cpukit/rtems/src/rtemstimer.c
index 8f2282a..a51934a 100644
a
|
b
|
|
18 | 18 | |
19 | 19 | #include <rtems/system.h> |
20 | 20 | #include <rtems/config.h> |
| 21 | #include <rtems/fatal.h> |
21 | 22 | #include <rtems/rtems/status.h> |
22 | 23 | #include <rtems/rtems/support.h> |
23 | 24 | #include <rtems/score/object.h> |
… |
… |
|
25 | 26 | #include <rtems/rtems/timer.h> |
26 | 27 | #include <rtems/score/tod.h> |
27 | 28 | #include <rtems/score/watchdog.h> |
| 29 | #include <rtems/score/sysinit.h> |
28 | 30 | |
29 | 31 | /*PAGE |
30 | 32 | * |
… |
… |
void _Timer_Manager_initialization(void) |
62 | 64 | |
63 | 65 | _Timer_server = NULL; |
64 | 66 | } |
| 67 | |
| 68 | /** |
| 69 | * @brief _Timer_Manager_temination |
| 70 | * |
| 71 | * Input parameters: NONE |
| 72 | * |
| 73 | * Output parameters: NONE |
| 74 | */ |
| 75 | |
| 76 | void _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 | |
| 89 | void _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 | |
| 113 | SYSINIT_ENTRY( _Timer_Manager_Sysinit, SYSINIT_GROUP_TIMER ); |
-
diff --git a/cpukit/rtems/src/sem.c b/cpukit/rtems/src/sem.c
index 0917fba..c02b044 100644
a
|
b
|
|
31 | 31 | |
32 | 32 | #include <rtems/system.h> |
33 | 33 | #include <rtems/config.h> |
| 34 | #include <rtems/fatal.h> |
34 | 35 | #include <rtems/rtems/status.h> |
35 | 36 | #include <rtems/rtems/support.h> |
36 | 37 | #include <rtems/rtems/attr.h> |
… |
… |
|
49 | 50 | #include <rtems/score/sysstate.h> |
50 | 51 | |
51 | 52 | #include <rtems/score/interr.h> |
| 53 | #include <rtems/score/sysinit.h> |
52 | 54 | |
53 | 55 | /*PAGE |
54 | 56 | * |
… |
… |
void _Semaphore_Manager_initialization(void) |
91 | 93 | #endif |
92 | 94 | |
93 | 95 | } |
| 96 | |
| 97 | /** |
| 98 | * @brief _Semaphore_Manager_temination |
| 99 | * |
| 100 | * Input parameters: NONE |
| 101 | * |
| 102 | * Output parameters: NONE |
| 103 | */ |
| 104 | |
| 105 | void _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 | |
| 118 | void _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 | |
| 142 | SYSINIT_ENTRY( _Semaphore_Manager_Sysinit, SYSINIT_GROUP_SEMAPHORE ); |
-
diff --git a/cpukit/rtems/src/semcreate.c b/cpukit/rtems/src/semcreate.c
index fc9fb23..35a0aa0 100644
a
|
b
|
|
48 | 48 | #include <rtems/score/sysstate.h> |
49 | 49 | |
50 | 50 | #include <rtems/score/interr.h> |
| 51 | #include <rtems/score/sysinit.h> |
51 | 52 | |
52 | 53 | /*PAGE |
53 | 54 | * |
… |
… |
rtems_status_code rtems_semaphore_create( |
229 | 230 | _Thread_Enable_dispatch(); |
230 | 231 | return RTEMS_SUCCESSFUL; |
231 | 232 | } |
| 233 | |
| 234 | /** |
| 235 | * @brief The reference of Sysinit entry |
| 236 | * |
| 237 | * Input parameters: |
| 238 | * handler - _Semaphore_Manager_Sysinit |
| 239 | */ |
| 240 | |
| 241 | SYSINIT_REFERENCE( _Semaphore_Manager_Sysinit ); |
-
diff --git a/cpukit/rtems/src/signal.c b/cpukit/rtems/src/signal.c
index b0f5282..f3f70f4 100644
a
|
b
|
|
17 | 17 | #endif |
18 | 18 | |
19 | 19 | #include <rtems/system.h> |
| 20 | #include <rtems/fatal.h> |
20 | 21 | #include <rtems/rtems/status.h> |
21 | 22 | #include <rtems/rtems/asr.h> |
22 | 23 | #include <rtems/score/isr.h> |
… |
… |
|
24 | 25 | #include <rtems/rtems/signal.h> |
25 | 26 | #include <rtems/score/thread.h> |
26 | 27 | #include <rtems/rtems/tasks.h> |
| 28 | #include <rtems/score/sysinit.h> |
27 | 29 | |
28 | 30 | /*PAGE |
29 | 31 | * |
… |
… |
void _Signal_Manager_initialization( void ) |
49 | 51 | ); |
50 | 52 | #endif |
51 | 53 | } |
| 54 | |
| 55 | /** |
| 56 | * @brief _Signal_Manager_temination |
| 57 | * |
| 58 | * Input parameters: NONE |
| 59 | * |
| 60 | * Output parameters: NONE |
| 61 | */ |
| 62 | |
| 63 | void _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 | |
| 76 | void _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 | |
| 100 | SYSINIT_ENTRY( _Signal_Manager_Sysinit, SYSINIT_GROUP_SIGNAL ); |
-
diff --git a/cpukit/rtems/src/signalcatch.c b/cpukit/rtems/src/signalcatch.c
index f1a9258..59b030b 100644
a
|
b
|
|
24 | 24 | #include <rtems/rtems/signal.h> |
25 | 25 | #include <rtems/score/thread.h> |
26 | 26 | #include <rtems/rtems/tasks.h> |
| 27 | #include <rtems/score/sysinit.h> |
27 | 28 | |
28 | 29 | /*PAGE |
29 | 30 | * |
… |
… |
rtems_status_code rtems_signal_catch( |
67 | 68 | _Thread_Enable_dispatch(); |
68 | 69 | return RTEMS_SUCCESSFUL; |
69 | 70 | } |
| 71 | |
| 72 | /** |
| 73 | * @brief The reference of Sysinit entry |
| 74 | * |
| 75 | * Input parameters: |
| 76 | * handler - _Signal_Manager_Sysinit |
| 77 | */ |
| 78 | |
| 79 | SYSINIT_REFERENCE( _Signal_Manager_Sysinit ); |
-
diff --git a/cpukit/rtems/src/signalsend.c b/cpukit/rtems/src/signalsend.c
index bf86a8d..b71ca37 100644
a
|
b
|
|
24 | 24 | #include <rtems/rtems/signal.h> |
25 | 25 | #include <rtems/score/thread.h> |
26 | 26 | #include <rtems/rtems/tasks.h> |
| 27 | #include <rtems/score/sysinit.h> |
27 | 28 | |
28 | 29 | /*PAGE |
29 | 30 | * |
… |
… |
rtems_status_code rtems_signal_send( |
92 | 93 | |
93 | 94 | return RTEMS_INVALID_ID; |
94 | 95 | } |
| 96 | |
| 97 | /** |
| 98 | * @brief The reference of Sysinit entry |
| 99 | * |
| 100 | * Input parameters: |
| 101 | * handler - _Signal_Manager_Sysinit |
| 102 | */ |
| 103 | |
| 104 | SYSINIT_REFERENCE( _Signal_Manager_Sysinit ); |
-
diff --git a/cpukit/rtems/src/taskcreate.c b/cpukit/rtems/src/taskcreate.c
index 7ebfaa3..029f8df 100644
a
|
b
|
|
32 | 32 | #include <rtems/score/apiext.h> |
33 | 33 | #include <rtems/score/sysstate.h> |
34 | 34 | #include <rtems/score/apimutex.h> |
| 35 | #include <rtems/score/sysinit.h> |
35 | 36 | |
36 | 37 | /*PAGE |
37 | 38 | * |
… |
… |
rtems_status_code rtems_task_create( |
227 | 228 | _RTEMS_Unlock_allocator(); |
228 | 229 | return RTEMS_SUCCESSFUL; |
229 | 230 | } |
| 231 | |
| 232 | /** |
| 233 | * @brief The reference of Sysinit entry |
| 234 | * |
| 235 | * Input parameters: |
| 236 | * handler - _RTEMS_tasks_Manager_Sysinit |
| 237 | */ |
| 238 | |
| 239 | SYSINIT_REFERENCE( _RTEMS_tasks_Manager_Sysinit ); |
-
diff --git a/cpukit/rtems/src/tasks.c b/cpukit/rtems/src/tasks.c
index 2a806f9..a200fa5 100644
a
|
b
|
|
17 | 17 | |
18 | 18 | #include <rtems/system.h> |
19 | 19 | #include <rtems/config.h> |
| 20 | #include <rtems/fatal.h> |
20 | 21 | #include <rtems/rtems/status.h> |
21 | 22 | #include <rtems/rtems/support.h> |
22 | 23 | #include <rtems/rtems/modes.h> |
… |
… |
|
31 | 32 | #include <rtems/score/wkspace.h> |
32 | 33 | #include <rtems/score/apiext.h> |
33 | 34 | #include <rtems/score/sysstate.h> |
| 35 | #include <rtems/score/sysinit.h> |
34 | 36 | |
35 | 37 | /*PAGE |
36 | 38 | * |
… |
… |
void _RTEMS_tasks_Manager_initialization(void) |
286 | 288 | |
287 | 289 | } |
288 | 290 | |
| 291 | /** |
| 292 | * @brief _RTEMS_tasks_Manager_temination |
| 293 | * |
| 294 | * Input parameters: NONE |
| 295 | * |
| 296 | * Output parameters: NONE |
| 297 | */ |
| 298 | |
| 299 | void _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 | |
| 312 | void _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 | |
| 336 | SYSINIT_ENTRY( _RTEMS_tasks_Manager_Sysinit, SYSINIT_GROUP_TASK ); |
| 337 | |
289 | 338 | /*PAGE |
290 | 339 | * |
291 | 340 | * _RTEMS_tasks_Initialize_user_tasks |
-
diff --git a/cpukit/rtems/src/timercreate.c b/cpukit/rtems/src/timercreate.c
index 11fc78e..b681337 100644
a
|
b
|
|
24 | 24 | #include <rtems/rtems/timer.h> |
25 | 25 | #include <rtems/score/tod.h> |
26 | 26 | #include <rtems/score/watchdog.h> |
| 27 | #include <rtems/score/sysinit.h> |
27 | 28 | |
28 | 29 | /*PAGE |
29 | 30 | * |
… |
… |
rtems_status_code rtems_timer_create( |
76 | 77 | _Thread_Enable_dispatch(); |
77 | 78 | return RTEMS_SUCCESSFUL; |
78 | 79 | } |
| 80 | |
| 81 | /** |
| 82 | * @brief The reference of Sysinit entry |
| 83 | * |
| 84 | * Input parameters: |
| 85 | * handler - _Timer_Manager_Sysinit |
| 86 | */ |
| 87 | |
| 88 | SYSINIT_REFERENCE( _Timer_Manager_Sysinit ); |
-
diff --git a/cpukit/sapi/src/rtemsapi.c b/cpukit/sapi/src/rtemsapi.c
index 89c6643..c8abfdc 100644
a
|
b
|
|
44 | 44 | #include <rtems/rtems/sem.h> |
45 | 45 | #include <rtems/rtems/signal.h> |
46 | 46 | #include <rtems/rtems/timer.h> |
| 47 | #include <rtems/score/sysinit.h> |
47 | 48 | |
48 | 49 | Objects_Information *_RTEMS_Objects[ OBJECTS_RTEMS_CLASSES_LAST + 1 ]; |
49 | 50 | |
… |
… |
void _RTEMS_API_Initialize(void) |
66 | 67 | _Multiprocessing_Manager_initialization(); |
67 | 68 | #endif |
68 | 69 | |
| 70 | /* |
69 | 71 | _RTEMS_tasks_Manager_initialization(); |
70 | 72 | _Timer_Manager_initialization(); |
71 | 73 | _Signal_Manager_initialization(); |
… |
… |
void _RTEMS_API_Initialize(void) |
77 | 79 | _Dual_ported_memory_Manager_initialization(); |
78 | 80 | _Rate_monotonic_Manager_initialization(); |
79 | 81 | _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 | |
80 | 89 | } |
81 | 90 | |
82 | 91 | /* end of file */ |