Changeset 17e6f86 in rtems for cpukit/sapi


Ignore:
Timestamp:
Dec 14, 2015, 1:26:13 PM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
36b86d7
Parents:
e079b33e
git-author:
Sebastian Huber <sebastian.huber@…> (12/14/15 13:26:13)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/03/16 09:00:51)
Message:

Statically initialize _Objects_Information_table

Location:
cpukit/sapi/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/sapi/src/exinit.c

    re079b33e r17e6f86  
    6262#endif
    6363
    64 Objects_Information *_Internal_Objects[ OBJECTS_INTERNAL_CLASSES_LAST + 1 ];
     64static Objects_Information *
     65_Internal_Objects[ OBJECTS_INTERNAL_CLASSES_LAST + 1 ];
     66
     67static Objects_Information *_RTEMS_Objects[ OBJECTS_RTEMS_CLASSES_LAST + 1 ];
     68
     69static Objects_Information *_POSIX_Objects[ OBJECTS_POSIX_CLASSES_LAST + 1 ];
     70
     71Objects_Information **_Objects_Information_table[ OBJECTS_APIS_LAST + 1 ] = {
     72  NULL,
     73  &_Internal_Objects[ 0 ],
     74  &_RTEMS_Objects[ 0 ],
     75  &_POSIX_Objects[ 0 ]
     76};
    6577
    6678static void rtems_initialize_data_structures(void)
     
    104116  _User_extensions_Handler_initialization();
    105117  _ISR_Handler_initialization();
    106 
    107   /*
    108    * Initialize the internal support API and allocator Mutex
    109    */
    110   _Objects_Information_table[OBJECTS_INTERNAL_API] = _Internal_Objects;
    111118
    112119  _API_Mutex_Initialization( 2 );
  • cpukit/sapi/src/posixapi.c

    re079b33e r17e6f86  
    5353}
    5454
    55 Objects_Information *_POSIX_Objects[ OBJECTS_POSIX_CLASSES_LAST + 1 ];
    56 
    5755void _POSIX_API_Initialize(void)
    5856{
     
    6361   * Currently, there are no none type size assumptions.
    6462   */
    65 
    66   /*
    67    * Install our API Object Management Table and initialize the
    68    * various managers.
    69    */
    70   _Objects_Information_table[OBJECTS_POSIX_API] = _POSIX_Objects;
    7163
    7264  _POSIX_Key_Manager_initialization();
  • cpukit/sapi/src/rtemsapi.c

    re079b33e r17e6f86  
    4040#include <rtems/rtems/timerimpl.h>
    4141
    42 Objects_Information *_RTEMS_Objects[ OBJECTS_RTEMS_CLASSES_LAST + 1 ];
    43 
    4442void _RTEMS_API_Initialize(void)
    4543{
    46   /*
    47    * Install our API Object Management Table and initialize the
    48    * various managers.
    49    */
    50   _Objects_Information_table[OBJECTS_CLASSIC_API] = _RTEMS_Objects;
    51 
    5244  _RTEMS_tasks_Manager_initialization();
    5345  _Timer_Manager_initialization();
Note: See TracChangeset for help on using the changeset viewer.