source: rtems/cpukit/sapi/src/rtemsapi.c @ 37cd592

4.104.114.84.95
Last change on this file since 37cd592 was 0577ec1d, checked in by Joel Sherrill <joel.sherrill@…>, on 07/01/02 at 22:31:29

2002-07-01 Joel Sherrill <joel@…>

  • Mega patch merge to change the format of the object IDs to loosen the dependency between the SCORE and the various APIs. There was considerable work to simplify the object name management and it appears that the name_table field is no longer needed. This patch also includes the addition of the internal mutex which is currently only used to protect some types of allocation and deallocation. This significantly can reduce context switch latency under certain circumstances. In particular, some heap/region operations were O(n) and had dispatching disabled. This should help enormously. With this merge, the patch is not as clean as it should be. In particular, the documentation has not been modified to reflect the new object ID layout, the IDs in the test screens are not updated, and _Objects_Get_information needs to be a real routine not inlined. As part of this patch a lot of MP code for thread/proxy blocking was made conditional and cleaned up.
  • include/confdefs.h, src/exinit.c, src/extension.c, src/itronapi.c, src/posixapi.c, src/rtemsapi.c: Modified as part of above.
  • Property mode set to 100644
File size: 2.4 KB
Line 
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.OARcorp.com/rtems/license.html.
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
43Objects_Information *_RTEMS_Objects[ OBJECTS_RTEMS_CLASSES_LAST + 1 ];
44
45/*PAGE
46 *
47 *  _RTEMS_API_Initialize
48 *
49 *  XXX
50 */
51
52void _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 */
Note: See TracBrowser for help on using the repository browser.