Changeset 92bb345 in rtems for cpukit/sapi


Ignore:
Timestamp:
Dec 10, 2015, 10:40:26 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
565672a
Parents:
a853c851
git-author:
Sebastian Huber <sebastian.huber@…> (12/10/15 10:40:26)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/03/16 09:00:51)
Message:

Optional Extensions initialization

Update #2408.

Location:
cpukit/sapi
Files:
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • cpukit/sapi/Makefile.am

    ra853c851 r92bb345  
    3232    src/ioinitialize.c src/ioopen.c src/ioread.c src/ioregisterdriver.c \
    3333    src/iounregisterdriver.c src/iowrite.c src/posixapi.c  \
    34     src/rtemsapi.c src/extensiondata.c src/getversionstring.c \
     34    src/rtemsapi.c src/getversionstring.c \
    3535    src/chainappendnotify.c src/chaingetnotify.c src/chaingetwait.c \
    3636    src/chainprependnotify.c src/rbheap.c src/interrtext.c \
  • cpukit/sapi/include/rtems/extensionimpl.h

    ra853c851 r92bb345  
    2626#endif
    2727
    28 #ifndef SAPI_EXT_EXTERN
    29 #define SAPI_EXT_EXTERN extern
    30 #endif
    31 
    32 SAPI_EXT_EXTERN Objects_Information  _Extension_Information;
    33 
    34 /**
    35  *  @brief Initialize extension manager.
    36  *
    37  *  This routine initializes all extension manager related data structures.
    38  */
    39 void _Extension_Manager_initialization(void);
     28extern Objects_Information  _Extension_Information;
    4029
    4130RTEMS_INLINE_ROUTINE Extension_Control *_Extension_Allocate( void )
  • cpukit/sapi/src/exinit.c

    ra853c851 r92bb345  
    138138  _RTEMS_API_Initialize();
    139139
    140   _Extension_Manager_initialization();
    141 
    142140  _POSIX_API_Initialize();
    143141}
  • cpukit/sapi/src/extension.c

    ra853c851 r92bb345  
    2222#endif
    2323
    24 #include <rtems/system.h>
     24#include <rtems/extensionimpl.h>
    2525#include <rtems/config.h>
    26 #include <rtems/rtems/support.h>
    27 #include <rtems/score/thread.h>
    28 #include <rtems/extensionimpl.h>
     26#include <rtems/sysinit.h>
    2927
    30 void _Extension_Manager_initialization(void)
     28Objects_Information _Extension_Information;
     29
     30static void _Extension_Manager_initialization(void)
    3131{
    3232  _Objects_Initialize_information(
     
    4545  );
    4646}
     47
     48RTEMS_SYSINIT_ITEM(
     49  _Extension_Manager_initialization,
     50  RTEMS_SYSINIT_USER_EXTENSIONS,
     51  RTEMS_SYSINIT_ORDER_MIDDLE
     52);
Note: See TracChangeset for help on using the changeset viewer.