1 | /* |
---|
2 | * POSIX API Initialization Support |
---|
3 | * |
---|
4 | * NOTE: |
---|
5 | * |
---|
6 | * COPYRIGHT (c) 1989-1999. |
---|
7 | * On-Line Applications Research Corporation (OAR). |
---|
8 | * |
---|
9 | * The license and distribution terms for this file may be |
---|
10 | * found in the file LICENSE in this distribution or at |
---|
11 | * http://www.rtems.com/license/LICENSE. |
---|
12 | * |
---|
13 | * $Id$ |
---|
14 | */ |
---|
15 | |
---|
16 | /* |
---|
17 | * RTEMS_API_INIT is defined so all of the RTEMS API |
---|
18 | * data will be included in this object file. |
---|
19 | */ |
---|
20 | |
---|
21 | #define RTEMS_API_INIT |
---|
22 | |
---|
23 | #include <rtems/system.h> |
---|
24 | #include <rtems/rtems/status.h> |
---|
25 | #include <rtems/rtems/rtemsapi.h> |
---|
26 | |
---|
27 | #include <rtems/rtems/intr.h> |
---|
28 | #include <rtems/rtems/clock.h> |
---|
29 | #include <rtems/rtems/tasks.h> |
---|
30 | #include <rtems/rtems/dpmem.h> |
---|
31 | #include <rtems/rtems/event.h> |
---|
32 | #include <rtems/rtems/message.h> |
---|
33 | #if defined(RTEMS_MULTIPROCESSING) |
---|
34 | #include <rtems/rtems/mp.h> |
---|
35 | #endif |
---|
36 | #include <rtems/rtems/part.h> |
---|
37 | #include <rtems/rtems/ratemon.h> |
---|
38 | #include <rtems/rtems/region.h> |
---|
39 | #include <rtems/rtems/sem.h> |
---|
40 | #include <rtems/rtems/signal.h> |
---|
41 | #include <rtems/rtems/timer.h> |
---|
42 | |
---|
43 | Objects_Information *_RTEMS_Objects[ OBJECTS_RTEMS_CLASSES_LAST + 1 ]; |
---|
44 | |
---|
45 | /*PAGE |
---|
46 | * |
---|
47 | * _RTEMS_API_Initialize |
---|
48 | * |
---|
49 | * XXX |
---|
50 | */ |
---|
51 | |
---|
52 | void _RTEMS_API_Initialize( |
---|
53 | rtems_configuration_table *configuration_table |
---|
54 | ) |
---|
55 | { |
---|
56 | rtems_api_configuration_table *api_configuration; |
---|
57 | |
---|
58 | api_configuration = configuration_table->RTEMS_api_configuration; |
---|
59 | |
---|
60 | _Objects_Information_table[OBJECTS_CLASSIC_API] = _RTEMS_Objects; |
---|
61 | |
---|
62 | _Attributes_Handler_initialization(); |
---|
63 | |
---|
64 | _Interrupt_Manager_initialization(); |
---|
65 | |
---|
66 | #if defined(RTEMS_MULTIPROCESSING) |
---|
67 | _Multiprocessing_Manager_initialization(); |
---|
68 | #endif |
---|
69 | |
---|
70 | _RTEMS_tasks_Manager_initialization( |
---|
71 | api_configuration->maximum_tasks, |
---|
72 | api_configuration->number_of_initialization_tasks, |
---|
73 | api_configuration->User_initialization_tasks_table |
---|
74 | ); |
---|
75 | |
---|
76 | _Timer_Manager_initialization( api_configuration->maximum_timers ); |
---|
77 | |
---|
78 | _Signal_Manager_initialization(); |
---|
79 | |
---|
80 | _Event_Manager_initialization(); |
---|
81 | |
---|
82 | _Message_queue_Manager_initialization( |
---|
83 | api_configuration->maximum_message_queues |
---|
84 | ); |
---|
85 | |
---|
86 | _Semaphore_Manager_initialization( api_configuration->maximum_semaphores ); |
---|
87 | |
---|
88 | _Partition_Manager_initialization( api_configuration->maximum_partitions ); |
---|
89 | |
---|
90 | _Region_Manager_initialization( api_configuration->maximum_regions ); |
---|
91 | |
---|
92 | _Dual_ported_memory_Manager_initialization( api_configuration->maximum_ports); |
---|
93 | |
---|
94 | _Rate_monotonic_Manager_initialization( api_configuration->maximum_periods ); |
---|
95 | } |
---|
96 | |
---|
97 | /* end of file */ |
---|