-
RCS file: /usr1/CVS/rtems/c/src/lib/libbsp/i386/pc386/startup/linkcmds,v
retrieving revision 1.17
diff -u -r1.17 linkcmds
|
|
|
50 | 50 | . = ALIGN (16); |
51 | 51 | |
52 | 52 | /* |
| 53 | * Special RTEMS Kernel constructor sections. |
| 54 | */ |
| 55 | . = ALIGN (16); |
| 56 | __start_set_rtems_ctor = .; |
| 57 | *(set_rtems_ctor*); |
| 58 | __stop_set_rtems_ctor = ABSOLUTE(.); |
| 59 | *(set_domain_*); |
| 60 | *(set_pseudo_*); |
| 61 | |
| 62 | /* |
53 | 63 | * Special FreeBSD sysctl sections. |
54 | 64 | */ |
55 | 65 | . = ALIGN (16); |
-
RCS file: /usr1/CVS/rtems/c/src/optman/rtems/no-barrier.c,v
retrieving revision 1.1
diff -u -r1.1 no-barrier.c
|
|
|
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( |
21 | 22 | uint32_t maximum_barriers |
22 | 23 | ) |
23 | 24 | { |
24 | 25 | } |
| 26 | #endif |
-
RCS file: /usr1/CVS/rtems/c/src/optman/rtems/no-dpmem.c,v
retrieving revision 1.13
diff -u -r1.13 no-dpmem.c
|
|
|
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( |
25 | 26 | uint32_t maximum_ports |
26 | 27 | ) |
27 | 28 | { |
28 | 29 | } |
| 30 | #endif |
-
RCS file: /usr1/CVS/rtems/c/src/optman/rtems/no-event.c,v
retrieving revision 1.13
diff -u -r1.13 no-event.c
|
|
|
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 |
-
RCS file: /usr1/CVS/rtems/c/src/optman/rtems/no-msg.c,v
retrieving revision 1.17
diff -u -r1.17 no-msg.c
|
|
|
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( |
29 | 30 | uint32_t maximum_message_queues |
30 | 31 | ) |
31 | 32 | { |
32 | 33 | } |
| 34 | #endif |
-
RCS file: /usr1/CVS/rtems/c/src/optman/rtems/no-part.c,v
retrieving revision 1.14
diff -u -r1.14 no-part.c
|
|
|
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( |
24 | 25 | uint32_t maximum_partitions |
25 | 26 | ) |
26 | 27 | { |
27 | 28 | } |
| 29 | #endif |
-
RCS file: /usr1/CVS/rtems/c/src/optman/rtems/no-region.c,v
retrieving revision 1.15
diff -u -r1.15 no-region.c
|
|
|
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( |
25 | 26 | uint32_t maximum_regions |
26 | 27 | ) |
27 | 28 | { |
28 | 29 | } |
| 30 | #endif |
-
RCS file: /usr1/CVS/rtems/c/src/optman/rtems/no-rtmon.c,v
retrieving revision 1.13
diff -u -r1.13 no-rtmon.c
|
|
|
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( |
26 | 27 | uint32_t maximum_periods |
27 | 28 | ) |
28 | 29 | { |
29 | 30 | } |
| 31 | #endif |
| 32 | |
-
RCS file: /usr1/CVS/rtems/c/src/optman/rtems/no-sem.c,v
retrieving revision 1.16
diff -u -r1.16 no-sem.c
|
|
|
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( |
28 | 29 | uint32_t maximum_semaphores |
29 | 30 | ) |
30 | 31 | { |
31 | 32 | } |
32 | 33 | |
| 34 | #endif |
-
RCS file: /usr1/CVS/rtems/c/src/optman/rtems/no-timer.c,v
retrieving revision 1.13
diff -u -r1.13 no-timer.c
|
|
|
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( |
27 | 28 | uint32_t maximum_timers |
28 | 29 | ) |
29 | 30 | { |
30 | 31 | } |
31 | | |
| 32 | #endif |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/include/rtems/rtems/barrier.h,v
retrieving revision 1.2
diff -u -r1.2 barrier.h
|
|
|
35 | 35 | extern "C" { |
36 | 36 | #endif |
37 | 37 | |
| 38 | #include <rtems/config.h> |
38 | 39 | #include <rtems/rtems/types.h> |
39 | 40 | #include <rtems/rtems/support.h> |
40 | 41 | #include <rtems/rtems/attr.h> |
… |
… |
|
72 | 73 | */ |
73 | 74 | |
74 | 75 | void _Barrier_Manager_initialization( |
75 | | uint32_t maximum_barriers |
| 76 | rtems_api_configuration_table *api_configuration |
76 | 77 | ); |
77 | 78 | |
78 | 79 | /** |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/include/rtems/rtems/config.h,v
retrieving revision 1.11
diff -u -r1.11 config.h
|
|
|
24 | 24 | #endif |
25 | 25 | |
26 | 26 | #include <rtems/rtems/types.h> |
27 | | #include <rtems/rtems/tasks.h> |
| 27 | |
| 28 | struct rtems_initialization_tasks_table; |
28 | 29 | |
29 | 30 | /* |
30 | 31 | * The following records define the Configuration Table. The |
… |
… |
|
46 | 47 | uint32_t maximum_periods; |
47 | 48 | uint32_t maximum_barriers; |
48 | 49 | uint32_t number_of_initialization_tasks; |
49 | | rtems_initialization_tasks_table *User_initialization_tasks_table; |
| 50 | struct rtems_initialization_tasks_table *User_initialization_tasks_table; |
50 | 51 | } rtems_api_configuration_table; |
51 | 52 | |
52 | 53 | #ifdef __cplusplus |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/include/rtems/rtems/dpmem.h,v
retrieving revision 1.16
diff -u -r1.16 dpmem.h
|
|
|
38 | 38 | extern "C" { |
39 | 39 | #endif |
40 | 40 | |
| 41 | #include <rtems/config.h> |
41 | 42 | #include <rtems/score/object.h> |
42 | 43 | #include <rtems/rtems/support.h> |
43 | 44 | #include <rtems/rtems/status.h> |
… |
… |
|
70 | 71 | */ |
71 | 72 | |
72 | 73 | void _Dual_ported_memory_Manager_initialization( |
73 | | uint32_t maximum_ports |
| 74 | rtems_api_configuration_table *api_configuration |
74 | 75 | ); |
75 | 76 | |
76 | 77 | /* |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/include/rtems/rtems/message.h,v
retrieving revision 1.25
diff -u -r1.25 message.h
|
|
|
39 | 39 | extern "C" { |
40 | 40 | #endif |
41 | 41 | |
| 42 | #include <rtems/config.h> |
42 | 43 | #include <rtems/rtems/types.h> |
43 | 44 | #include <rtems/rtems/status.h> |
44 | 45 | #include <rtems/score/chain.h> |
… |
… |
|
75 | 76 | |
76 | 77 | RTEMS_MESSAGE_EXTERN Objects_Information _Message_queue_Information; |
77 | 78 | |
78 | | /* |
79 | | * _Message_queue_Manager_initialization |
80 | | * |
81 | | * DESCRIPTION: |
| 79 | /** |
| 80 | * @brief _Message_queue_Manager_initialization |
82 | 81 | * |
83 | 82 | * This routine performs the initialization necessary for this manager. |
| 83 | * |
| 84 | * @param[in] api_configuration is the classic API configuration and |
| 85 | * contains the maximum_message_queues. This is the number |
| 86 | * message queue that can be created. |
84 | 87 | */ |
85 | 88 | |
86 | 89 | void _Message_queue_Manager_initialization( |
87 | | uint32_t maximum_message_queues |
| 90 | rtems_api_configuration_table *api_configuration |
88 | 91 | ); |
89 | 92 | |
90 | 93 | /* |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/include/rtems/rtems/part.h,v
retrieving revision 1.17
diff -u -r1.17 part.h
|
|
|
37 | 37 | extern "C" { |
38 | 38 | #endif |
39 | 39 | |
| 40 | #include <rtems/config.h> |
40 | 41 | #include <rtems/score/address.h> |
41 | 42 | #include <rtems/score/object.h> |
42 | 43 | #include <rtems/rtems/attr.h> |
… |
… |
|
74 | 75 | */ |
75 | 76 | |
76 | 77 | void _Partition_Manager_initialization( |
77 | | uint32_t maximum_partitions |
| 78 | rtems_api_configuration_table *api_configuration |
78 | 79 | ); |
79 | 80 | |
80 | 81 | /* |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/include/rtems/rtems/ratemon.h,v
retrieving revision 1.23
diff -u -r1.23 ratemon.h
|
|
|
50 | 50 | #define RTEMS_ENABLE_NANOSECOND_RATE_MONOTONIC_STATISTICS |
51 | 51 | #endif |
52 | 52 | |
| 53 | #include <rtems/config.h> |
53 | 54 | #include <rtems/score/object.h> |
54 | 55 | #include <rtems/score/thread.h> |
55 | 56 | #include <rtems/score/watchdog.h> |
… |
… |
|
161 | 162 | */ |
162 | 163 | |
163 | 164 | void _Rate_monotonic_Manager_initialization( |
164 | | uint32_t maximum_periods |
| 165 | rtems_api_configuration_table *api_configuration |
165 | 166 | ); |
166 | 167 | |
167 | 168 | /* |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/include/rtems/rtems/region.h,v
retrieving revision 1.21
diff -u -r1.21 region.h
|
|
|
38 | 38 | |
39 | 39 | #include <stddef.h> |
40 | 40 | |
| 41 | #include <rtems/config.h> |
41 | 42 | #include <rtems/score/object.h> |
42 | 43 | #include <rtems/score/threadq.h> |
43 | 44 | #include <rtems/score/heap.h> |
… |
… |
|
81 | 82 | */ |
82 | 83 | |
83 | 84 | void _Region_Manager_initialization( |
84 | | uint32_t maximum_regions |
| 85 | rtems_api_configuration_table *api_configuration |
85 | 86 | ); |
86 | 87 | |
87 | 88 | /* |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/include/rtems/rtems/sem.h,v
retrieving revision 1.24
diff -u -r1.24 sem.h
|
|
|
37 | 37 | extern "C" { |
38 | 38 | #endif |
39 | 39 | |
| 40 | #include <rtems/config.h> |
40 | 41 | #include <rtems/rtems/types.h> |
41 | 42 | #include <rtems/rtems/support.h> |
42 | 43 | #include <rtems/rtems/tasks.h> |
… |
… |
|
74 | 75 | */ |
75 | 76 | |
76 | 77 | void _Semaphore_Manager_initialization( |
77 | | uint32_t maximum_semaphores |
| 78 | rtems_api_configuration_table *api_configuration |
78 | 79 | ); |
79 | 80 | |
80 | 81 | /* |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/include/rtems/rtems/tasks.h,v
retrieving revision 1.31
diff -u -r1.31 tasks.h
|
|
|
47 | 47 | #include <rtems/score/object.h> |
48 | 48 | #include <rtems/score/states.h> |
49 | 49 | #include <rtems/score/thread.h> |
| 50 | #include <rtems/rtems/config.h> |
50 | 51 | #include <rtems/rtems/types.h> |
51 | 52 | #include <rtems/rtems/eventset.h> |
52 | 53 | #include <rtems/rtems/asr.h> |
… |
… |
|
142 | 143 | * initialization time. |
143 | 144 | */ |
144 | 145 | |
145 | | typedef struct { |
| 146 | typedef struct rtems_initialization_tasks_table { |
146 | 147 | rtems_name name; /* task name */ |
147 | 148 | size_t stack_size; /* task stack size */ |
148 | 149 | rtems_task_priority initial_priority; /* task priority */ |
… |
… |
|
181 | 182 | */ |
182 | 183 | |
183 | 184 | void _RTEMS_tasks_Manager_initialization( |
184 | | uint32_t maximum_tasks |
| 185 | rtems_api_configuration_table *api_configuration |
185 | 186 | ); |
186 | 187 | |
187 | 188 | /* |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/include/rtems/rtems/timer.h,v
retrieving revision 1.22
diff -u -r1.22 timer.h
|
|
|
44 | 44 | extern "C" { |
45 | 45 | #endif |
46 | 46 | |
| 47 | #include <rtems/config.h> |
47 | 48 | #include <rtems/score/object.h> |
48 | 49 | #include <rtems/score/watchdog.h> |
49 | 50 | #include <rtems/score/thread.h> |
… |
… |
|
124 | 125 | */ |
125 | 126 | |
126 | 127 | void _Timer_Manager_initialization( |
127 | | uint32_t maximum_timers |
| 128 | rtems_api_configuration_table *api_configuration |
128 | 129 | ); |
129 | 130 | |
130 | 131 | /* |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/barrier.c,v
retrieving revision 1.1
diff -u -r1.1 barrier.c
|
|
|
32 | 32 | #include <rtems/rtems/support.h> |
33 | 33 | #include <rtems/score/object.h> |
34 | 34 | #include <rtems/rtems/barrier.h> |
| 35 | #include <rtems/score/constructor.h> |
35 | 36 | #if defined(RTEMS_MULTIPROCESSING) |
36 | 37 | #include <rtems/score/mpci.h> |
37 | 38 | #endif |
… |
… |
|
40 | 41 | * @brief _Barrier_Manager_initialization |
41 | 42 | * |
42 | 43 | * Input parameters: |
43 | | * maximum_barriers - maximum configured barriers |
| 44 | * api_configuration - API configuration table. |
44 | 45 | * |
45 | 46 | * Output parameters: NONE |
46 | 47 | */ |
47 | 48 | |
48 | 49 | void _Barrier_Manager_initialization( |
49 | | uint32_t maximum_barriers |
| 50 | rtems_api_configuration_table *api_configuration |
50 | 51 | ) |
51 | 52 | { |
52 | 53 | _Objects_Initialize_information( |
53 | | &_Barrier_Information, /* object information table */ |
54 | | OBJECTS_CLASSIC_API, /* object API */ |
55 | | OBJECTS_RTEMS_BARRIERS, /* object class */ |
56 | | maximum_barriers, /* maximum objects of this class */ |
57 | | sizeof( Barrier_Control ), /* size of this object's control block */ |
58 | | FALSE, /* TRUE if the name is a string */ |
59 | | RTEMS_MAXIMUM_NAME_LENGTH /* maximum length of an object name */ |
| 54 | &_Barrier_Information, /* object information table */ |
| 55 | OBJECTS_CLASSIC_API, /* object API */ |
| 56 | OBJECTS_RTEMS_BARRIERS, /* object class */ |
| 57 | api_configuration->maximum_barriers, /* maximum objects of this class */ |
| 58 | sizeof( Barrier_Control ), /* size of this object's control block */ |
| 59 | FALSE, /* TRUE if the name is a string */ |
| 60 | RTEMS_MAXIMUM_NAME_LENGTH /* maximum length of an object name */ |
60 | 61 | #if defined(RTEMS_MULTIPROCESSING) |
61 | 62 | , |
62 | | FALSE, /* TRUE if this is a global object class */ |
63 | | NULL /* Proxy extraction support callout */ |
| 63 | FALSE, /* TRUE if this is a global object class */ |
| 64 | NULL /* Proxy extraction support callout */ |
64 | 65 | #endif |
65 | 66 | ); |
66 | 67 | } |
| 68 | |
| 69 | RTEMS_CTOR( classic, barrier, 13, _Barrier_Manager_initialization); |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/barriercreate.c,v
retrieving revision 1.1
diff -u -r1.1 barriercreate.c
|
|
|
90 | 90 | _Thread_Enable_dispatch(); |
91 | 91 | return RTEMS_SUCCESSFUL; |
92 | 92 | } |
| 93 | |
| 94 | RTEMS_CTOR_REF( classic, barrier ); |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/dpmem.c,v
retrieving revision 1.19
diff -u -r1.19 dpmem.c
|
|
|
18 | 18 | #include <rtems/system.h> |
19 | 19 | #include <rtems/rtems/status.h> |
20 | 20 | #include <rtems/rtems/support.h> |
| 21 | #include <rtems/score/constructor.h> |
21 | 22 | #include <rtems/score/address.h> |
22 | 23 | #include <rtems/rtems/dpmem.h> |
23 | 24 | #include <rtems/score/object.h> |
… |
… |
|
37 | 38 | */ |
38 | 39 | |
39 | 40 | void _Dual_ported_memory_Manager_initialization( |
40 | | uint32_t maximum_ports |
| 41 | rtems_api_configuration_table *api_configuration |
41 | 42 | ) |
42 | 43 | { |
43 | 44 | _Objects_Initialize_information( |
44 | 45 | &_Dual_ported_memory_Information, /* object information table */ |
45 | 46 | OBJECTS_CLASSIC_API, /* object API */ |
46 | 47 | OBJECTS_RTEMS_PORTS, /* object class */ |
47 | | maximum_ports, /* maximum objects of this class */ |
| 48 | api_configuration->maximum_ports, /* maximum objects of this class */ |
48 | 49 | sizeof( Dual_ported_memory_Control ), |
49 | 50 | /* size of this object's control block */ |
50 | 51 | FALSE, /* TRUE if names of this object are strings */ |
… |
… |
|
56 | 57 | #endif |
57 | 58 | ); |
58 | 59 | } |
| 60 | |
| 61 | RTEMS_CTOR( classic, dpmem, 11, _Dual_ported_memory_Manager_initialization ); |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/dpmemcreate.c,v
retrieving revision 1.9
diff -u -r1.9 dpmemcreate.c
|
|
|
86 | 86 | _Thread_Enable_dispatch(); |
87 | 87 | return RTEMS_SUCCESSFUL; |
88 | 88 | } |
| 89 | |
| 90 | RTEMS_CTOR_REF( classic, dpmem ); |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/event.c,v
retrieving revision 1.23
diff -u -r1.23 event.c
|
|
|
18 | 18 | #include <rtems/system.h> |
19 | 19 | #include <rtems/rtems/status.h> |
20 | 20 | #include <rtems/rtems/event.h> |
| 21 | #include <rtems/score/constructor.h> |
21 | 22 | #include <rtems/score/isr.h> |
22 | 23 | #include <rtems/score/object.h> |
23 | 24 | #include <rtems/rtems/options.h> |
… |
… |
|
46 | 47 | _MPCI_Register_packet_processor( MP_PACKET_EVENT, _Event_MP_Process_packet ); |
47 | 48 | #endif |
48 | 49 | } |
| 50 | |
| 51 | RTEMS_CTOR( classic, events, 6, _Event_Manager_initialization ); |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/eventreceive.c,v
retrieving revision 1.5
diff -u -r1.5 eventreceive.c
|
|
|
18 | 18 | #include <rtems/system.h> |
19 | 19 | #include <rtems/rtems/status.h> |
20 | 20 | #include <rtems/rtems/event.h> |
| 21 | #include <rtems/score/constructor.h> |
21 | 22 | #include <rtems/score/isr.h> |
22 | 23 | #include <rtems/score/object.h> |
23 | 24 | #include <rtems/rtems/options.h> |
… |
… |
|
67 | 68 | _Thread_Enable_dispatch(); |
68 | 69 | return( _Thread_Executing->Wait.return_code ); |
69 | 70 | } |
| 71 | |
| 72 | RTEMS_CTOR_REF( classic, events ); |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/eventseize.c,v
retrieving revision 1.5
diff -u -r1.5 eventseize.c
|
|
|
18 | 18 | #include <rtems/system.h> |
19 | 19 | #include <rtems/rtems/status.h> |
20 | 20 | #include <rtems/rtems/event.h> |
| 21 | #include <rtems/score/constructor.h> |
21 | 22 | #include <rtems/score/isr.h> |
22 | 23 | #include <rtems/score/object.h> |
23 | 24 | #include <rtems/rtems/options.h> |
… |
… |
|
140 | 141 | return; |
141 | 142 | } |
142 | 143 | } |
| 144 | |
| 145 | RTEMS_CTOR_REF( classic, events ); |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/eventsend.c,v
retrieving revision 1.5
diff -u -r1.5 eventsend.c
|
|
|
18 | 18 | #include <rtems/system.h> |
19 | 19 | #include <rtems/rtems/status.h> |
20 | 20 | #include <rtems/rtems/event.h> |
| 21 | #include <rtems/score/constructor.h> |
21 | 22 | #include <rtems/score/isr.h> |
22 | 23 | #include <rtems/score/object.h> |
23 | 24 | #include <rtems/rtems/options.h> |
… |
… |
|
73 | 74 | |
74 | 75 | return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ |
75 | 76 | } |
| 77 | |
| 78 | RTEMS_CTOR_REF( classic, events ); |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/eventsurrender.c,v
retrieving revision 1.8
diff -u -r1.8 eventsurrender.c
|
|
|
18 | 18 | #include <rtems/system.h> |
19 | 19 | #include <rtems/rtems/status.h> |
20 | 20 | #include <rtems/rtems/event.h> |
| 21 | #include <rtems/score/constructor.h> |
21 | 22 | #include <rtems/score/isr.h> |
22 | 23 | #include <rtems/score/object.h> |
23 | 24 | #include <rtems/rtems/options.h> |
… |
… |
|
109 | 110 | } |
110 | 111 | _ISR_Enable( level ); |
111 | 112 | } |
| 113 | |
| 114 | RTEMS_CTOR_REF( classic, events ); |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/intr.c,v
retrieving revision 1.14
diff -u -r1.14 intr.c
|
|
|
17 | 17 | #endif |
18 | 18 | |
19 | 19 | #include <rtems/system.h> |
| 20 | #include <rtems/score/constructor.h> |
20 | 21 | #include <rtems/rtems/status.h> |
21 | 22 | #include <rtems/score/isr.h> |
22 | 23 | #include <rtems/rtems/intr.h> |
… |
… |
|
33 | 34 | void _Interrupt_Manager_initialization( void ) |
34 | 35 | { |
35 | 36 | } |
| 37 | |
| 38 | RTEMS_CTOR( classic, interrupt, 1, _Interrupt_Manager_initialization ); |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/intrcatch.c,v
retrieving revision 1.4
diff -u -r1.4 intrcatch.c
|
|
|
17 | 17 | #endif |
18 | 18 | |
19 | 19 | #include <rtems/system.h> |
| 20 | #include <rtems/score/constructor.h> |
20 | 21 | #include <rtems/rtems/status.h> |
21 | 22 | #include <rtems/score/isr.h> |
22 | 23 | #include <rtems/rtems/intr.h> |
… |
… |
|
56 | 57 | |
57 | 58 | return RTEMS_SUCCESSFUL; |
58 | 59 | } |
| 60 | |
| 61 | RTEMS_CTOR_REF( classic, interrupt ); |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/mp.c,v
retrieving revision 1.14
diff -u -r1.14 mp.c
|
|
|
17 | 17 | #endif |
18 | 18 | |
19 | 19 | #include <rtems/system.h> |
| 20 | #include <rtems/score/constructor.h> |
20 | 21 | #include <rtems/rtems/status.h> |
21 | 22 | #include <rtems/rtems/mp.h> |
22 | 23 | #include <rtems/score/mpci.h> |
… |
… |
|
42 | 43 | _MPCI_Announce(); |
43 | 44 | } |
44 | 45 | |
| 46 | |
| 47 | #if defined(RTEMS_MULTIPROCESSING) |
| 48 | RTEMS_CTOR( classic, multiprocessing, 2, _Multiprocessing_Manager_initialization ); |
| 49 | #endif |
| 50 | |
45 | 51 | /* end of file */ |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/msg.c,v
retrieving revision 1.30
diff -u -r1.30 msg.c
|
|
|
25 | 25 | #include <rtems/score/states.h> |
26 | 26 | #include <rtems/score/thread.h> |
27 | 27 | #include <rtems/score/wkspace.h> |
| 28 | #include <rtems/score/constructor.h> |
28 | 29 | #if defined(RTEMS_MULTIPROCESSING) |
29 | 30 | #include <rtems/score/mpci.h> |
30 | 31 | #endif |
… |
… |
|
42 | 43 | * data structures. |
43 | 44 | * |
44 | 45 | * Input parameters: |
45 | | * maximum_message_queues - number of message queues to initialize |
| 46 | * api_configuration - API configuration table. |
46 | 47 | * |
47 | 48 | * Output parameters: NONE |
48 | 49 | */ |
49 | 50 | |
50 | 51 | void _Message_queue_Manager_initialization( |
51 | | uint32_t maximum_message_queues |
| 52 | rtems_api_configuration_table *api_configuration |
52 | 53 | ) |
53 | 54 | { |
54 | 55 | _Objects_Initialize_information( |
55 | | &_Message_queue_Information, /* object information table */ |
56 | | OBJECTS_CLASSIC_API, /* object API */ |
57 | | OBJECTS_RTEMS_MESSAGE_QUEUES, /* object class */ |
58 | | maximum_message_queues, /* maximum objects of this class */ |
59 | | sizeof( Message_queue_Control ), |
60 | | /* size of this object's control block */ |
61 | | FALSE, /* TRUE if names of this object are strings */ |
62 | | RTEMS_MAXIMUM_NAME_LENGTH /* maximum length of each object's name */ |
| 56 | &_Message_queue_Information, /* object information table */ |
| 57 | OBJECTS_CLASSIC_API, /* object API */ |
| 58 | OBJECTS_RTEMS_MESSAGE_QUEUES, /* object class */ |
| 59 | api_configuration->maximum_message_queues, /* maximum objects of this class */ |
| 60 | sizeof( Message_queue_Control ), /* size of this object's control block */ |
| 61 | FALSE, /* TRUE if names of this object are strings */ |
| 62 | RTEMS_MAXIMUM_NAME_LENGTH /* maximum length of each object's name */ |
63 | 63 | #if defined(RTEMS_MULTIPROCESSING) |
64 | 64 | , |
65 | | TRUE, /* TRUE if this is a global object class */ |
66 | | _Message_queue_MP_Send_extract_proxy /* Proxy extraction support callout */ |
| 65 | TRUE, /* TRUE if this is a global object class */ |
| 66 | _Message_queue_MP_Send_extract_proxy /* Proxy extraction support callout */ |
67 | 67 | #endif |
68 | 68 | ); |
69 | 69 | |
… |
… |
|
79 | 79 | #endif |
80 | 80 | |
81 | 81 | } |
| 82 | |
| 83 | RTEMS_CTOR( classic, message_queue, 7, _Message_queue_Manager_initialization); |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/msgqcreate.c,v
retrieving revision 1.11
diff -u -r1.11 msgqcreate.c
|
|
|
20 | 20 | #include <rtems/score/sysstate.h> |
21 | 21 | #include <rtems/score/chain.h> |
22 | 22 | #include <rtems/score/isr.h> |
| 23 | #include <rtems/score/constructor.h> |
23 | 24 | #include <rtems/score/coremsg.h> |
24 | 25 | #include <rtems/score/object.h> |
25 | 26 | #include <rtems/score/states.h> |
… |
… |
|
163 | 164 | _Thread_Enable_dispatch(); |
164 | 165 | return RTEMS_SUCCESSFUL; |
165 | 166 | } |
| 167 | |
| 168 | RTEMS_CTOR_REF( classic, message_queue ); |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/part.c,v
retrieving revision 1.21
diff -u -r1.21 part.c
|
|
|
19 | 19 | #include <rtems/system.h> |
20 | 20 | #include <rtems/rtems/status.h> |
21 | 21 | #include <rtems/rtems/support.h> |
| 22 | #include <rtems/score/constructor.h> |
22 | 23 | #include <rtems/score/address.h> |
23 | 24 | #include <rtems/score/object.h> |
24 | 25 | #include <rtems/rtems/part.h> |
… |
… |
|
39 | 40 | */ |
40 | 41 | |
41 | 42 | void _Partition_Manager_initialization( |
42 | | uint32_t maximum_partitions |
| 43 | rtems_api_configuration_table *api_configuration |
43 | 44 | ) |
44 | 45 | { |
45 | 46 | _Objects_Initialize_information( |
46 | | &_Partition_Information, /* object information table */ |
47 | | OBJECTS_CLASSIC_API, /* object API */ |
48 | | OBJECTS_RTEMS_PARTITIONS, /* object class */ |
49 | | maximum_partitions, /* maximum objects of this class */ |
50 | | sizeof( Partition_Control ), /* size of this object's control block */ |
51 | | FALSE, /* TRUE if the name is a string */ |
52 | | RTEMS_MAXIMUM_NAME_LENGTH /* maximum length of an object name */ |
| 47 | &_Partition_Information, /* object information table */ |
| 48 | OBJECTS_CLASSIC_API, /* object API */ |
| 49 | OBJECTS_RTEMS_PARTITIONS, /* object class */ |
| 50 | api_configuration->maximum_partitions, /* maximum objects of this class */ |
| 51 | sizeof( Partition_Control ), /* size of this object's control block */ |
| 52 | FALSE, /* TRUE if the name is a string */ |
| 53 | RTEMS_MAXIMUM_NAME_LENGTH /* maximum length of an object name */ |
53 | 54 | #if defined(RTEMS_MULTIPROCESSING) |
54 | 55 | , |
55 | 56 | TRUE, /* TRUE if this is a global object class */ |
… |
… |
|
69 | 70 | #endif |
70 | 71 | |
71 | 72 | } |
| 73 | |
| 74 | RTEMS_CTOR( classic, partition, 9, _Partition_Manager_initialization ); |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/partcreate.c,v
retrieving revision 1.9
diff -u -r1.9 partcreate.c
|
|
|
20 | 20 | #include <rtems/rtems/status.h> |
21 | 21 | #include <rtems/rtems/support.h> |
22 | 22 | #include <rtems/score/address.h> |
| 23 | #include <rtems/score/constructor.h> |
23 | 24 | #include <rtems/score/object.h> |
24 | 25 | #include <rtems/rtems/part.h> |
25 | 26 | #include <rtems/score/thread.h> |
… |
… |
|
127 | 128 | _Thread_Enable_dispatch(); |
128 | 129 | return RTEMS_SUCCESSFUL; |
129 | 130 | } |
| 131 | |
| 132 | RTEMS_CTOR_REF( classic, partition ); |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/ratemon.c,v
retrieving revision 1.22
diff -u -r1.22 ratemon.c
|
|
|
19 | 19 | #include <rtems/system.h> |
20 | 20 | #include <rtems/rtems/status.h> |
21 | 21 | #include <rtems/rtems/support.h> |
| 22 | #include <rtems/score/constructor.h> |
22 | 23 | #include <rtems/score/isr.h> |
23 | 24 | #include <rtems/score/object.h> |
24 | 25 | #include <rtems/rtems/ratemon.h> |
… |
… |
|
41 | 42 | */ |
42 | 43 | |
43 | 44 | void _Rate_monotonic_Manager_initialization( |
44 | | uint32_t maximum_periods |
| 45 | rtems_api_configuration_table *api_configuration |
45 | 46 | ) |
46 | 47 | { |
47 | 48 | _Objects_Initialize_information( |
48 | | &_Rate_monotonic_Information, /* object information table */ |
49 | | OBJECTS_CLASSIC_API, /* object API */ |
50 | | OBJECTS_RTEMS_PERIODS, /* object class */ |
51 | | maximum_periods, /* maximum objects of this class */ |
52 | | sizeof( Rate_monotonic_Control ), /* size of this object's control block */ |
53 | | FALSE, /* TRUE if the name is a string */ |
54 | | RTEMS_MAXIMUM_NAME_LENGTH /* maximum length of an object name */ |
| 49 | &_Rate_monotonic_Information, /* object information table */ |
| 50 | OBJECTS_CLASSIC_API, /* object API */ |
| 51 | OBJECTS_RTEMS_PERIODS, /* object class */ |
| 52 | api_configuration->maximum_periods, /* maximum objects of this class */ |
| 53 | sizeof( Rate_monotonic_Control ), /* size of this object's control block */ |
| 54 | FALSE, /* TRUE if the name is a string */ |
| 55 | RTEMS_MAXIMUM_NAME_LENGTH /* maximum length of an object name */ |
55 | 56 | #if defined(RTEMS_MULTIPROCESSING) |
56 | 57 | , |
57 | 58 | FALSE, /* TRUE if this is a global object class */ |
… |
… |
|
59 | 60 | #endif |
60 | 61 | ); |
61 | 62 | } |
| 63 | |
| 64 | RTEMS_CTOR( classic, ratemon, 12, _Rate_monotonic_Manager_initialization ); |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/ratemoncreate.c,v
retrieving revision 1.9
diff -u -r1.9 ratemoncreate.c
|
|
|
18 | 18 | #include <rtems/system.h> |
19 | 19 | #include <rtems/rtems/status.h> |
20 | 20 | #include <rtems/rtems/support.h> |
| 21 | #include <rtems/score/constructor.h> |
21 | 22 | #include <rtems/score/isr.h> |
22 | 23 | #include <rtems/score/object.h> |
23 | 24 | #include <rtems/rtems/ratemon.h> |
… |
… |
|
79 | 80 | _Thread_Enable_dispatch(); |
80 | 81 | return RTEMS_SUCCESSFUL; |
81 | 82 | } |
| 83 | |
| 84 | RTEMS_CTOR_REF( classic, ratemon ); |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/region.c,v
retrieving revision 1.25
diff -u -r1.25 region.c
|
|
|
19 | 19 | #include <rtems/system.h> |
20 | 20 | #include <rtems/rtems/status.h> |
21 | 21 | #include <rtems/rtems/support.h> |
| 22 | #include <rtems/score/constructor.h> |
22 | 23 | #include <rtems/score/object.h> |
23 | 24 | #include <rtems/rtems/options.h> |
24 | 25 | #include <rtems/rtems/region.h> |
… |
… |
|
39 | 40 | */ |
40 | 41 | |
41 | 42 | void _Region_Manager_initialization( |
42 | | uint32_t maximum_regions |
| 43 | rtems_api_configuration_table *api_configuration |
43 | 44 | ) |
44 | 45 | { |
45 | 46 | _Objects_Initialize_information( |
46 | | &_Region_Information, /* object information table */ |
47 | | OBJECTS_CLASSIC_API, /* object API */ |
48 | | OBJECTS_RTEMS_REGIONS, /* object class */ |
49 | | maximum_regions, /* maximum objects of this class */ |
50 | | sizeof( Region_Control ), /* size of this object's control block */ |
51 | | FALSE, /* TRUE if the name is a string */ |
52 | | RTEMS_MAXIMUM_NAME_LENGTH /* maximum length of an object name */ |
| 47 | &_Region_Information, /* object information table */ |
| 48 | OBJECTS_CLASSIC_API, /* object API */ |
| 49 | OBJECTS_RTEMS_REGIONS, /* object class */ |
| 50 | api_configuration->maximum_regions, /* maximum objects of this class */ |
| 51 | sizeof( Region_Control ), /* size of this object's control block */ |
| 52 | FALSE, /* TRUE if the name is a string */ |
| 53 | RTEMS_MAXIMUM_NAME_LENGTH /* maximum length of an object name */ |
53 | 54 | #if defined(RTEMS_MULTIPROCESSING) |
54 | 55 | , |
55 | 56 | FALSE, /* TRUE if this is a global object class */ |
… |
… |
|
69 | 70 | #endif |
70 | 71 | |
71 | 72 | } |
| 73 | |
| 74 | RTEMS_CTOR( classic, regions, 10, _Region_Manager_initialization ); |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/regioncreate.c,v
retrieving revision 1.9
diff -u -r1.9 regioncreate.c
|
|
|
19 | 19 | #include <rtems/system.h> |
20 | 20 | #include <rtems/rtems/status.h> |
21 | 21 | #include <rtems/rtems/support.h> |
| 22 | #include <rtems/score/constructor.h> |
22 | 23 | #include <rtems/score/object.h> |
23 | 24 | #include <rtems/rtems/options.h> |
24 | 25 | #include <rtems/rtems/region.h> |
… |
… |
|
112 | 113 | _RTEMS_Unlock_allocator(); |
113 | 114 | return RTEMS_SUCCESSFUL; |
114 | 115 | } |
| 116 | |
| 117 | RTEMS_CTOR_REF( classic, regions ); |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/rtemstimer.c,v
retrieving revision 1.22
diff -u -r1.22 rtemstimer.c
|
|
|
19 | 19 | #include <rtems/system.h> |
20 | 20 | #include <rtems/rtems/status.h> |
21 | 21 | #include <rtems/rtems/support.h> |
| 22 | #include <rtems/score/constructor.h> |
22 | 23 | #include <rtems/score/object.h> |
23 | 24 | #include <rtems/score/thread.h> |
24 | 25 | #include <rtems/rtems/timer.h> |
… |
… |
|
38 | 39 | */ |
39 | 40 | |
40 | 41 | void _Timer_Manager_initialization( |
41 | | uint32_t maximum_timers |
| 42 | rtems_api_configuration_table *api_configuration |
42 | 43 | ) |
43 | 44 | { |
44 | 45 | _Objects_Initialize_information( |
45 | | &_Timer_Information, /* object information table */ |
46 | | OBJECTS_CLASSIC_API, /* object API */ |
47 | | OBJECTS_RTEMS_TIMERS, /* object class */ |
48 | | maximum_timers, /* maximum objects of this class */ |
49 | | sizeof( Timer_Control ), /* size of this object's control block */ |
50 | | FALSE, /* TRUE if the name is a string */ |
51 | | RTEMS_MAXIMUM_NAME_LENGTH /* maximum length of an object name */ |
| 46 | &_Timer_Information, /* object information table */ |
| 47 | OBJECTS_CLASSIC_API, /* object API */ |
| 48 | OBJECTS_RTEMS_TIMERS, /* object class */ |
| 49 | api_configuration->maximum_timers, /* maximum objects of this class */ |
| 50 | sizeof( Timer_Control ), /* size of this object's control block */ |
| 51 | FALSE, /* TRUE if the name is a string */ |
| 52 | RTEMS_MAXIMUM_NAME_LENGTH /* maximum length of an object name */ |
52 | 53 | #if defined(RTEMS_MULTIPROCESSING) |
53 | 54 | , |
54 | 55 | FALSE, /* TRUE if this is a global object class */ |
… |
… |
|
63 | 64 | |
64 | 65 | _Timer_Server = NULL; |
65 | 66 | } |
| 67 | |
| 68 | RTEMS_CTOR( classic, timers, 4, _Timer_Manager_initialization ); |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/sem.c,v
retrieving revision 1.26
diff -u -r1.26 sem.c
|
|
|
33 | 33 | #include <rtems/rtems/status.h> |
34 | 34 | #include <rtems/rtems/support.h> |
35 | 35 | #include <rtems/rtems/attr.h> |
| 36 | #include <rtems/score/constructor.h> |
36 | 37 | #include <rtems/score/isr.h> |
37 | 38 | #include <rtems/score/object.h> |
38 | 39 | #include <rtems/rtems/options.h> |
… |
… |
|
62 | 63 | */ |
63 | 64 | |
64 | 65 | void _Semaphore_Manager_initialization( |
65 | | uint32_t maximum_semaphores |
| 66 | rtems_api_configuration_table *api_configuration |
66 | 67 | ) |
67 | 68 | { |
68 | 69 | _Objects_Initialize_information( |
69 | | &_Semaphore_Information, /* object information table */ |
70 | | OBJECTS_CLASSIC_API, /* object API */ |
71 | | OBJECTS_RTEMS_SEMAPHORES, /* object class */ |
72 | | maximum_semaphores, /* maximum objects of this class */ |
73 | | sizeof( Semaphore_Control ), /* size of this object's control block */ |
74 | | FALSE, /* TRUE if the name is a string */ |
75 | | RTEMS_MAXIMUM_NAME_LENGTH /* maximum length of an object name */ |
| 70 | &_Semaphore_Information, /* object information table */ |
| 71 | OBJECTS_CLASSIC_API, /* object API */ |
| 72 | OBJECTS_RTEMS_SEMAPHORES, /* object class */ |
| 73 | api_configuration->maximum_semaphores, /* maximum objects of this class */ |
| 74 | sizeof( Semaphore_Control ), /* size of this object's control block */ |
| 75 | FALSE, /* TRUE if the name is a string */ |
| 76 | RTEMS_MAXIMUM_NAME_LENGTH /* maximum length of an object name */ |
76 | 77 | #if defined(RTEMS_MULTIPROCESSING) |
77 | 78 | , |
78 | 79 | TRUE, /* TRUE if this is a global object class */ |
… |
… |
|
92 | 93 | #endif |
93 | 94 | |
94 | 95 | } |
| 96 | |
| 97 | RTEMS_CTOR( classic, semaphore, 8, _Semaphore_Manager_initialization ); |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/semcreate.c,v
retrieving revision 1.16
diff -u -r1.16 semcreate.c
|
|
|
33 | 33 | #include <rtems/rtems/status.h> |
34 | 34 | #include <rtems/rtems/support.h> |
35 | 35 | #include <rtems/rtems/attr.h> |
| 36 | #include <rtems/score/constructor.h> |
36 | 37 | #include <rtems/score/isr.h> |
37 | 38 | #include <rtems/score/object.h> |
38 | 39 | #include <rtems/rtems/options.h> |
… |
… |
|
228 | 229 | _Thread_Enable_dispatch(); |
229 | 230 | return RTEMS_SUCCESSFUL; |
230 | 231 | } |
| 232 | |
| 233 | RTEMS_CTOR_REF( classic, semaphore ); |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/signal.c,v
retrieving revision 1.16
diff -u -r1.16 signal.c
|
|
|
19 | 19 | #include <rtems/system.h> |
20 | 20 | #include <rtems/rtems/status.h> |
21 | 21 | #include <rtems/rtems/asr.h> |
| 22 | #include <rtems/score/constructor.h> |
22 | 23 | #include <rtems/score/isr.h> |
23 | 24 | #include <rtems/rtems/modes.h> |
24 | 25 | #include <rtems/rtems/signal.h> |
… |
… |
|
49 | 50 | ); |
50 | 51 | #endif |
51 | 52 | } |
| 53 | |
| 54 | RTEMS_CTOR( classic, signals, 5, _Signal_Manager_initialization ); |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/signalcatch.c,v
retrieving revision 1.5
diff -u -r1.5 signalcatch.c
|
|
|
19 | 19 | #include <rtems/system.h> |
20 | 20 | #include <rtems/rtems/status.h> |
21 | 21 | #include <rtems/rtems/asr.h> |
| 22 | #include <rtems/score/constructor.h> |
22 | 23 | #include <rtems/score/isr.h> |
23 | 24 | #include <rtems/rtems/modes.h> |
24 | 25 | #include <rtems/rtems/signal.h> |
… |
… |
|
67 | 68 | _Thread_Enable_dispatch(); |
68 | 69 | return RTEMS_SUCCESSFUL; |
69 | 70 | } |
| 71 | |
| 72 | RTEMS_CTOR_REF( classic, signals ); |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/signalsend.c,v
retrieving revision 1.5
diff -u -r1.5 signalsend.c
|
|
|
19 | 19 | #include <rtems/system.h> |
20 | 20 | #include <rtems/rtems/status.h> |
21 | 21 | #include <rtems/rtems/asr.h> |
| 22 | #include <rtems/score/constructor.h> |
22 | 23 | #include <rtems/score/isr.h> |
23 | 24 | #include <rtems/rtems/modes.h> |
24 | 25 | #include <rtems/rtems/signal.h> |
… |
… |
|
92 | 93 | |
93 | 94 | return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ |
94 | 95 | } |
| 96 | |
| 97 | RTEMS_CTOR_REF( classic, signals ); |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/taskcreate.c,v
retrieving revision 1.12
diff -u -r1.12 taskcreate.c
|
|
|
20 | 20 | #include <rtems/rtems/status.h> |
21 | 21 | #include <rtems/rtems/support.h> |
22 | 22 | #include <rtems/rtems/modes.h> |
| 23 | #include <rtems/score/constructor.h> |
23 | 24 | #include <rtems/score/object.h> |
24 | 25 | #include <rtems/score/stack.h> |
25 | 26 | #include <rtems/score/states.h> |
… |
… |
|
228 | 229 | _Thread_Enable_dispatch(); |
229 | 230 | return RTEMS_SUCCESSFUL; |
230 | 231 | } |
| 232 | |
| 233 | RTEMS_CTOR_REF( classic, tasks ); |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/tasks.c,v
retrieving revision 1.51
diff -u -r1.51 tasks.c
|
|
|
19 | 19 | #include <rtems/rtems/status.h> |
20 | 20 | #include <rtems/rtems/support.h> |
21 | 21 | #include <rtems/rtems/modes.h> |
| 22 | #include <rtems/score/constructor.h> |
22 | 23 | #include <rtems/score/object.h> |
23 | 24 | #include <rtems/score/stack.h> |
24 | 25 | #include <rtems/score/states.h> |
… |
… |
|
242 | 243 | */ |
243 | 244 | |
244 | 245 | void _RTEMS_tasks_Manager_initialization( |
245 | | uint32_t maximum_tasks |
| 246 | rtems_api_configuration_table *api_configuration |
246 | 247 | ) |
247 | 248 | { |
248 | 249 | |
249 | 250 | _Objects_Initialize_information( |
250 | | &_RTEMS_tasks_Information, /* object information table */ |
251 | | OBJECTS_CLASSIC_API, /* object API */ |
252 | | OBJECTS_RTEMS_TASKS, /* object class */ |
253 | | maximum_tasks, /* maximum objects of this class */ |
254 | | sizeof( Thread_Control ), /* size of this object's control block */ |
255 | | FALSE, /* TRUE if the name is a string */ |
256 | | RTEMS_MAXIMUM_NAME_LENGTH /* maximum length of an object name */ |
| 251 | &_RTEMS_tasks_Information, /* object information table */ |
| 252 | OBJECTS_CLASSIC_API, /* object API */ |
| 253 | OBJECTS_RTEMS_TASKS, /* object class */ |
| 254 | api_configuration->maximum_tasks, /* maximum objects of this class */ |
| 255 | sizeof( Thread_Control ), /* size of this object's control block */ |
| 256 | FALSE, /* TRUE if the name is a string */ |
| 257 | RTEMS_MAXIMUM_NAME_LENGTH /* maximum length of an object name */ |
257 | 258 | #if defined(RTEMS_MULTIPROCESSING) |
258 | 259 | , |
259 | 260 | TRUE, /* TRUE if this is a global object class */ |
… |
… |
|
300 | 301 | if ( _RTEMS_tasks_Initialize_user_tasks_p ) |
301 | 302 | (*_RTEMS_tasks_Initialize_user_tasks_p)(); |
302 | 303 | } |
| 304 | |
| 305 | RTEMS_CTOR( classic, tasks, 3, _RTEMS_tasks_Manager_initialization ); |
-
RCS file: /usr1/CVS/rtems/cpukit/rtems/src/timercreate.c,v
retrieving revision 1.9
diff -u -r1.9 timercreate.c
|
|
|
19 | 19 | #include <rtems/system.h> |
20 | 20 | #include <rtems/rtems/status.h> |
21 | 21 | #include <rtems/rtems/support.h> |
| 22 | #include <rtems/score/constructor.h> |
22 | 23 | #include <rtems/score/object.h> |
23 | 24 | #include <rtems/score/thread.h> |
24 | 25 | #include <rtems/rtems/timer.h> |
… |
… |
|
76 | 77 | _Thread_Enable_dispatch(); |
77 | 78 | return RTEMS_SUCCESSFUL; |
78 | 79 | } |
| 80 | |
| 81 | RTEMS_CTOR_REF( classic, timers ); |
-
RCS file: /usr1/CVS/rtems/cpukit/sapi/src/exinit.c,v
retrieving revision 1.39
diff -u -r1.39 exinit.c
|
|
|
34 | 34 | |
35 | 35 | #include <rtems/score/apiext.h> |
36 | 36 | #include <rtems/score/apimutex.h> |
| 37 | #include <rtems/score/constructor.h> |
37 | 38 | #include <rtems/score/copyrt.h> |
38 | 39 | #include <rtems/score/heap.h> |
39 | 40 | #include <rtems/score/interr.h> |
-
RCS file: /usr1/CVS/rtems/cpukit/sapi/src/rtemsapi.c,v
retrieving revision 1.16
diff -u -r1.16 rtemsapi.c
|
|
|
45 | 45 | #include <rtems/rtems/signal.h> |
46 | 46 | #include <rtems/rtems/timer.h> |
47 | 47 | |
| 48 | #include <rtems/score/constructor.h> |
| 49 | |
| 50 | RTEMS_CTOR_ROOT( classic, 0 ); |
| 51 | |
48 | 52 | Objects_Information *_RTEMS_Objects[ OBJECTS_RTEMS_CLASSES_LAST + 1 ]; |
49 | 53 | |
| 54 | RTEMS_CTOR_SET_DECLARE( ); |
| 55 | |
| 56 | void _CORE_constructor_Find_Nodes( |
| 57 | CORE_constructor_Node *parent, |
| 58 | int depth |
| 59 | ) |
| 60 | { |
| 61 | CORE_constructor_Node **nodep; |
| 62 | CORE_constructor_Node *node; |
| 63 | |
| 64 | if (depth > 32) |
| 65 | { |
| 66 | _Internal_error_Occurred( INTERNAL_ERROR_CORE, TRUE, INTERNAL_ERROR_INVALID_NODE ); |
| 67 | } |
| 68 | |
| 69 | for (nodep = RTEMS_CTOR_SET_BEGIN( ); nodep != RTEMS_CTOR_SET_END( ); nodep++) |
| 70 | { |
| 71 | node = *nodep; |
| 72 | if (node->parent == parent) |
| 73 | { |
| 74 | CORE_constructor_Node **prev = &parent->children; |
| 75 | |
| 76 | while (*prev) |
| 77 | { |
| 78 | if ((node != *prev) && (*prev)->order >= node->order) |
| 79 | { |
| 80 | node->next = *prev; |
| 81 | *prev = node; |
| 82 | break; |
| 83 | } |
| 84 | else |
| 85 | { |
| 86 | prev = &((*prev)->next); |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | if (*prev == 0) |
| 91 | { |
| 92 | node->next = *prev; |
| 93 | *prev = node; |
| 94 | } |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | node = parent->children; |
| 99 | while (node) |
| 100 | { |
| 101 | _CORE_constructor_Find_Nodes( node, ++depth ); |
| 102 | node = node->next; |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | void _CORE_constructor_Invoke( |
| 107 | CORE_constructor_Node *parent, |
| 108 | void *data |
| 109 | ) |
| 110 | { |
| 111 | CORE_constructor_Node *node = parent->children; |
| 112 | |
| 113 | /* |
| 114 | * Only invoke the parent's handler if it is the top of the |
| 115 | * of the tree. |
| 116 | */ |
| 117 | if ((parent->parent == 0) && parent->handler) |
| 118 | parent->handler( data ); |
| 119 | |
| 120 | while (node) |
| 121 | { |
| 122 | if (node->handler) |
| 123 | node->handler( data ); |
| 124 | node = node->next; |
| 125 | } |
| 126 | } |
| 127 | |
| 128 | /** |
| 129 | * Call the kernel constructors for a specific family of |
| 130 | * constructors. |
| 131 | */ |
| 132 | |
| 133 | void _CORE_construct( |
| 134 | CORE_constructor_Node *top, |
| 135 | void *data |
| 136 | ) |
| 137 | { |
| 138 | /* |
| 139 | * Create the tree of nodes from this top. |
| 140 | */ |
| 141 | _CORE_constructor_Find_Nodes( top, 0 ); |
| 142 | |
| 143 | /* |
| 144 | * Invoke the constructors in order from top to bottom. |
| 145 | */ |
| 146 | _CORE_constructor_Invoke( top, data ); |
| 147 | } |
| 148 | |
50 | 149 | /*PAGE |
51 | 150 | * |
52 | 151 | * _RTEMS_API_Initialize |
… |
… |
|
64 | 163 | |
65 | 164 | _Objects_Information_table[OBJECTS_CLASSIC_API] = _RTEMS_Objects; |
66 | 165 | |
| 166 | /* |
| 167 | * The attribute handler is not a function rather a macro so |
| 168 | * cannot make it a constructor. |
| 169 | */ |
67 | 170 | _Attributes_Handler_initialization(); |
68 | 171 | |
69 | | _Interrupt_Manager_initialization(); |
70 | | |
71 | | #if defined(RTEMS_MULTIPROCESSING) |
72 | | _Multiprocessing_Manager_initialization(); |
73 | | #endif |
74 | | |
75 | | _RTEMS_tasks_Manager_initialization( api_configuration->maximum_tasks ); |
76 | | |
77 | | _Timer_Manager_initialization( api_configuration->maximum_timers ); |
78 | | |
79 | | _Signal_Manager_initialization(); |
80 | | |
81 | | _Event_Manager_initialization(); |
82 | | |
83 | | _Message_queue_Manager_initialization( |
84 | | api_configuration->maximum_message_queues |
85 | | ); |
86 | | |
87 | | _Semaphore_Manager_initialization( api_configuration->maximum_semaphores ); |
88 | | |
89 | | _Partition_Manager_initialization( api_configuration->maximum_partitions ); |
90 | | |
91 | | _Region_Manager_initialization( api_configuration->maximum_regions ); |
92 | | |
93 | | _Dual_ported_memory_Manager_initialization( api_configuration->maximum_ports); |
94 | | |
95 | | _Rate_monotonic_Manager_initialization( api_configuration->maximum_periods ); |
96 | | |
97 | | _Barrier_Manager_initialization( api_configuration->maximum_barriers ); |
| 172 | _CORE_construct( &RTEMS_CTOR_NODE_PARENT( classic ), api_configuration ); |
98 | 173 | } |
99 | 174 | |
100 | 175 | /* end of file */ |
-
RCS file: /usr1/CVS/rtems/cpukit/score/Makefile.am,v
retrieving revision 1.46
diff -u -r1.46 Makefile.am
|
|
|
19 | 19 | include_rtems_score_HEADERS = include/rtems/score/address.h \ |
20 | 20 | include/rtems/score/apiext.h include/rtems/score/apimutex.h \ |
21 | 21 | include/rtems/score/bitfield.h include/rtems/score/chain.h \ |
| 22 | include/rtems/score/constructor.h \ |
22 | 23 | include/rtems/score/context.h include/rtems/score/copyrt.h \ |
23 | 24 | include/rtems/score/corebarrier.h include/rtems/score/coremsg.h \ |
24 | 25 | include/rtems/score/coremutex.h include/rtems/score/corerwlock.h \ |
-
RCS file: /usr1/CVS/rtems/cpukit/score/preinstall.am,v
retrieving revision 1.13
diff -u -r1.13 preinstall.am
|
|
|
55 | 55 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/chain.h |
56 | 56 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/chain.h |
57 | 57 | |
| 58 | $(PROJECT_INCLUDE)/rtems/score/constructor.h: include/rtems/score/constructor.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) |
| 59 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/constructor.h |
| 60 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/constructor.h |
| 61 | |
58 | 62 | $(PROJECT_INCLUDE)/rtems/score/context.h: include/rtems/score/context.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) |
59 | 63 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/context.h |
60 | 64 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/context.h |
-
RCS file: cpukit/score/include/rtems/score/constructor.h
diff -N cpukit/score/include/rtems/score/constructor.h
-
|
+
|
|
| 1 | /** |
| 2 | * @file rtems/score/constructor.h |
| 3 | * |
| 4 | * This include file contains all the constants and structures associated |
| 5 | * with the construction of services by placing into a structured table |
| 6 | * elements to be called by the kernel. It is based on the sysctl |
| 7 | * system in the BSD kernel. |
| 8 | */ |
| 9 | |
| 10 | /* |
| 11 | * COPYRIGHT (c) 2007. |
| 12 | * Chris Johns (chrisj@rtems.org) |
| 13 | * |
| 14 | * The license and distribution terms for this file may be |
| 15 | * found in the file LICENSE in this distribution or at |
| 16 | * http://www.rtems.com/license/LICENSE. |
| 17 | * |
| 18 | * $Id: isr.h,v 1.25 2006/03/07 20:47:53 joel Exp $ |
| 19 | */ |
| 20 | |
| 21 | #ifndef _RTEMS_SCORE_CONSTRUCTOR_H |
| 22 | #define _RTEMS_SCORE_CONSTRUCTOR_H |
| 23 | |
| 24 | /** |
| 25 | * @defgroup Core Constructor. |
| 26 | * |
| 27 | * This code encapsulates functionality which provides the foundation |
| 28 | * for Core construction of services to allow link time binding of |
| 29 | * resources in the kernel. |
| 30 | */ |
| 31 | /**@{*/ |
| 32 | |
| 33 | #ifdef __cplusplus |
| 34 | extern "C" { |
| 35 | #endif |
| 36 | |
| 37 | /** |
| 38 | * The type of handler invoked when constructing. |
| 39 | */ |
| 40 | typedef void ( *CORE_constructor )( void * ); |
| 41 | |
| 42 | /** |
| 43 | * The following type defines the control block used to manage |
| 44 | * the interrupt level portion of the status register. |
| 45 | */ |
| 46 | typedef struct _CORE_constructor_Node { |
| 47 | /** |
| 48 | * Children point to the parent create the tree of nodes with no |
| 49 | * downward dependence. |
| 50 | */ |
| 51 | const struct _CORE_constructor_Node *parent; |
| 52 | |
| 53 | /** |
| 54 | * Children of this node. |
| 55 | */ |
| 56 | struct _CORE_constructor_Node *children; |
| 57 | |
| 58 | /** |
| 59 | * Nodes with a common parent. |
| 60 | */ |
| 61 | struct _CORE_constructor_Node *next; |
| 62 | |
| 63 | /** |
| 64 | * The order this node is started in. Zero (0) means do not care. |
| 65 | */ |
| 66 | uint8_t order; |
| 67 | |
| 68 | /** |
| 69 | * The handler invoked when constructing. |
| 70 | */ |
| 71 | CORE_constructor handler; |
| 72 | |
| 73 | } CORE_constructor_Node; |
| 74 | |
| 75 | /* |
| 76 | * Private macros, not to be used outside this header file. Taken from |
| 77 | * the BSD header file 'linker_set.h'. |
| 78 | * |
| 79 | * The variables are not static as gcc will not output the variable |
| 80 | * is unused. No attribute exists to say it is used like you can |
| 81 | * for variables. |
| 82 | */ |
| 83 | #ifdef __GNUC__ |
| 84 | #define __force volatile |
| 85 | #define __weak __attribute__ ((weak)) |
| 86 | #define __unused __attribute__ ((used)) |
| 87 | #define __used |
| 88 | #define RTEMS_CORE_SET(sym) \ |
| 89 | CORE_constructor_Node const * const __set_rtems_ctor_sym_##sym \ |
| 90 | __attribute__(( section("set_rtems_ctor") )) __used = &sym |
| 91 | #else |
| 92 | #error "This file needs to be compiled by GCC or lint" |
| 93 | #endif |
| 94 | |
| 95 | /** |
| 96 | * |
| 97 | */ |
| 98 | #define RTEMS_CTOR_NODE_PARENT( parent ) \ |
| 99 | rtems_ctor_##parent##_children |
| 100 | |
| 101 | /** |
| 102 | * The following declares a static node which children can be added. |
| 103 | */ |
| 104 | #define RTEMS_CTOR_DECL( name ) \ |
| 105 | SCORE_EXTERN CORE_constructor_Node RTEMS_CTOR_NODE_PARENT( name ) |
| 106 | |
| 107 | /** |
| 108 | * |
| 109 | */ |
| 110 | #define RTEMS_CTOR_NODE_CHILDREN( parent, name ) \ |
| 111 | rtems_ctor_##parent##_##name##_children |
| 112 | |
| 113 | /** |
| 114 | * |
| 115 | */ |
| 116 | #define RTEMS_CTOR_SYM( parent, name ) \ |
| 117 | rtems_ctor__##parent##_##name |
| 118 | |
| 119 | /** |
| 120 | * |
| 121 | */ |
| 122 | #define RTEMS_CTOR( parent, name, order, handler ) \ |
| 123 | CORE_constructor_Node RTEMS_CTOR_SYM( parent, name ) = { \ |
| 124 | &RTEMS_CTOR_NODE_PARENT( parent ), 0, 0, order, \ |
| 125 | (CORE_constructor) handler }; \ |
| 126 | RTEMS_CORE_SET( rtems_ctor__##parent##_##name ) |
| 127 | |
| 128 | /** |
| 129 | * |
| 130 | */ |
| 131 | #define RTEMS_CTOR_ROOT( name, handler ) \ |
| 132 | CORE_constructor_Node RTEMS_CTOR_NODE_PARENT( name ) = { \ |
| 133 | 0, 0, 0, 0, (CORE_constructor) handler }; \ |
| 134 | RTEMS_CORE_SET( rtems_ctor_##name##_children ) |
| 135 | |
| 136 | /** |
| 137 | * |
| 138 | */ |
| 139 | #define RTEMS_CTOR_REF( parent, name ) \ |
| 140 | extern CORE_constructor_Node RTEMS_CTOR_SYM( parent, name ); \ |
| 141 | __force __weak __unused CORE_constructor_Node *RTEMS_CTOR_NODE_CHILDREN( parent, name ) = \ |
| 142 | &RTEMS_CTOR_SYM( parent, name ) |
| 143 | |
| 144 | /** |
| 145 | * |
| 146 | */ |
| 147 | #define RTEMS_CTOR_SET_DECLARE( ) \ |
| 148 | extern CORE_constructor_Node *__start_set_rtems_ctor[]; \ |
| 149 | extern CORE_constructor_Node *__stop_set_rtems_ctor[] |
| 150 | |
| 151 | /** |
| 152 | * |
| 153 | */ |
| 154 | #define RTEMS_CTOR_SET_BEGIN( ) (__start_set_rtems_ctor) |
| 155 | #define RTEMS_CTOR_SET_END( ) (__stop_set_rtems_ctor) |
| 156 | |
| 157 | /* |
| 158 | * Place here as a hack until placed into the correct location. |
| 159 | */ |
| 160 | RTEMS_CTOR_DECL( classic ); |
| 161 | |
| 162 | #ifdef __cplusplus |
| 163 | } |
| 164 | #endif |
| 165 | |
| 166 | /**@}*/ |
| 167 | |
| 168 | #endif |
| 169 | /* end of include file */ |
-
RCS file: cpukit/score/include/rtems/score/linker_set.h
diff -N cpukit/score/include/rtems/score/linker_set.h
-
|
+
|
|
| 1 | /*- |
| 2 | * Copyright (c) 1999 John D. Polstra |
| 3 | * Copyright (c) 1999,2001 Peter Wemm <peter@FreeBSD.org> |
| 4 | * All rights reserved. |
| 5 | * |
| 6 | * Redistribution and use in source and binary forms, with or without |
| 7 | * modification, are permitted provided that the following conditions |
| 8 | * are met: |
| 9 | * 1. Redistributions of source code must retain the above copyright |
| 10 | * notice, this list of conditions and the following disclaimer. |
| 11 | * 2. Redistributions in binary form must reproduce the above copyright |
| 12 | * notice, this list of conditions and the following disclaimer in the |
| 13 | * documentation and/or other materials provided with the distribution. |
| 14 | * |
| 15 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND |
| 16 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 17 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| 18 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE |
| 19 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| 20 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
| 21 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| 22 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
| 23 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
| 24 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 25 | * SUCH DAMAGE. |
| 26 | * |
| 27 | * $FreeBSD: src/sys/sys/linker_set.h,v 1.13 2002/09/23 06:11:29 peter Exp $ |
| 28 | */ |
| 29 | |
| 30 | #ifndef _SYS_LINKER_SET_H_ |
| 31 | #define _SYS_LINKER_SET_H_ |
| 32 | |
| 33 | /* |
| 34 | * The following macros are used to declare global sets of objects, which |
| 35 | * are collected by the linker into a `linker_set' as defined below. |
| 36 | * For ELF, this is done by constructing a separate segment for each set. |
| 37 | */ |
| 38 | |
| 39 | /* |
| 40 | * Private macros, not to be used outside this header file. |
| 41 | */ |
| 42 | #ifdef __GNUC__ |
| 43 | #define __MAKE_SET(set, sym) \ |
| 44 | static void const * const __set_##set##_sym_##sym \ |
| 45 | __attribute((section("set_" #set))) __used = &sym |
| 46 | #else /* !__GNUC__ */ |
| 47 | #ifndef lint |
| 48 | #error "This file needs to be compiled by GCC or lint" |
| 49 | #endif /* lint */ |
| 50 | #define __MAKE_SET(set, sym) extern void const * const (__set_##set##_sym_##sym) |
| 51 | #endif /* __GNUC__ */ |
| 52 | |
| 53 | /* |
| 54 | * Public macros. |
| 55 | */ |
| 56 | #define TEXT_SET(set, sym) __MAKE_SET(set, sym) |
| 57 | #define DATA_SET(set, sym) __MAKE_SET(set, sym) |
| 58 | #define BSS_SET(set, sym) __MAKE_SET(set, sym) |
| 59 | #define ABS_SET(set, sym) __MAKE_SET(set, sym) |
| 60 | #define SET_ENTRY(set, sym) __MAKE_SET(set, sym) |
| 61 | |
| 62 | /* |
| 63 | * Initialize before referring to a give linker set |
| 64 | */ |
| 65 | #define SET_DECLARE(set, ptype) \ |
| 66 | extern ptype *__CONCAT(__start_set_,set)[]; \ |
| 67 | extern ptype *__CONCAT(__stop_set_,set)[] |
| 68 | |
| 69 | #define SET_BEGIN(set) \ |
| 70 | (__CONCAT(__start_set_,set)) |
| 71 | #define SET_LIMIT(set) \ |
| 72 | (__CONCAT(__stop_set_,set)) |
| 73 | |
| 74 | /* |
| 75 | * Iterate over all the elements of a set. |
| 76 | * |
| 77 | * Sets always contain addresses of things, and "pvar" points to words |
| 78 | * containing those addresses. Thus is must be declared as "type **pvar", |
| 79 | * and the address of each set item is obtained inside the loop by "*pvar". |
| 80 | */ |
| 81 | #define SET_FOREACH(pvar, set) \ |
| 82 | for (pvar = SET_BEGIN(set); pvar < SET_LIMIT(set); pvar++) |
| 83 | |
| 84 | #define SET_ITEM(set, i) \ |
| 85 | ((SET_BEGIN(set))[i]) |
| 86 | |
| 87 | /* |
| 88 | * Provide a count of the items in a set. |
| 89 | */ |
| 90 | #define SET_COUNT(set) \ |
| 91 | (SET_LIMIT(set) - SET_BEGIN(set)) |
| 92 | |
| 93 | #endif /* _SYS_LINKER_SET_H_ */ |