diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-12-14 14:26:13 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-02-03 10:00:51 +0100 |
commit | 17e6f869d79eaf16678420f2062f2ee95edd239e (patch) | |
tree | 6c363d5dbe420fff6a48c8db3cba6d6a47729ddf /cpukit/sapi/src/exinit.c | |
parent | Filesystem: Export most generic path eval function (diff) | |
download | rtems-17e6f869d79eaf16678420f2062f2ee95edd239e.tar.bz2 |
Statically initialize _Objects_Information_table
Diffstat (limited to 'cpukit/sapi/src/exinit.c')
-rw-r--r-- | cpukit/sapi/src/exinit.c | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/cpukit/sapi/src/exinit.c b/cpukit/sapi/src/exinit.c index 1eaf24f4d3..7c1ffd65ec 100644 --- a/cpukit/sapi/src/exinit.c +++ b/cpukit/sapi/src/exinit.c @@ -61,7 +61,19 @@ #include <drvmgr/drvmgr.h> #endif -Objects_Information *_Internal_Objects[ OBJECTS_INTERNAL_CLASSES_LAST + 1 ]; +static Objects_Information * +_Internal_Objects[ OBJECTS_INTERNAL_CLASSES_LAST + 1 ]; + +static Objects_Information *_RTEMS_Objects[ OBJECTS_RTEMS_CLASSES_LAST + 1 ]; + +static Objects_Information *_POSIX_Objects[ OBJECTS_POSIX_CLASSES_LAST + 1 ]; + +Objects_Information **_Objects_Information_table[ OBJECTS_APIS_LAST + 1 ] = { + NULL, + &_Internal_Objects[ 0 ], + &_RTEMS_Objects[ 0 ], + &_POSIX_Objects[ 0 ] +}; static void rtems_initialize_data_structures(void) { @@ -104,11 +116,6 @@ static void rtems_initialize_data_structures(void) _User_extensions_Handler_initialization(); _ISR_Handler_initialization(); - /* - * Initialize the internal support API and allocator Mutex - */ - _Objects_Information_table[OBJECTS_INTERNAL_API] = _Internal_Objects; - _API_Mutex_Initialization( 2 ); _API_Mutex_Allocate( &_RTEMS_Allocator_Mutex ); _API_Mutex_Allocate( &_Once_Mutex ); |