diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-24 13:50:54 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-26 11:55:47 +0200 |
commit | a2e3f33f39e6898c2e2886216fe671b29a93d643 (patch) | |
tree | d304dc7fe4fcf0dcb42a61b8ba99b2c698d8454f /cpukit/score/src | |
parent | Include missing <rtems/score/threaddispatch.h> (diff) | |
download | rtems-a2e3f33f39e6898c2e2886216fe671b29a93d643.tar.bz2 |
score: Create object implementation header
Move implementation specific parts of object.h and object.inl into new
header file objectimpl.h. The object.h contains now only the
application visible API.
Diffstat (limited to '')
40 files changed, 62 insertions, 203 deletions
diff --git a/cpukit/score/src/apimutex.c b/cpukit/score/src/apimutex.c index bc72c91e7c..555292d539 100644 --- a/cpukit/score/src/apimutex.c +++ b/cpukit/score/src/apimutex.c @@ -1,7 +1,7 @@ /** * @file - * - * @brief Initialization for the API Mutexe Handler. + * + * @brief Initialization and Allocation for API Mutex Handler * * @ingroup ScoreAPIMutex */ @@ -19,8 +19,11 @@ #include "config.h" #endif -#include <rtems/system.h> #include <rtems/score/apimutex.h> +#include <rtems/score/coremuteximpl.h> +#include <rtems/score/objectimpl.h> + +static Objects_Information _API_Mutex_Information; void _API_Mutex_Initialization( uint32_t maximum_mutexes @@ -41,3 +44,25 @@ void _API_Mutex_Initialization( #endif ); } + +void _API_Mutex_Allocate( + API_Mutex_Control **the_mutex +) +{ + API_Mutex_Control *mutex; + + CORE_mutex_Attributes attr = { + CORE_MUTEX_NESTING_ACQUIRES, + false, + CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT, + 0 + }; + + mutex = (API_Mutex_Control *) _Objects_Allocate( &_API_Mutex_Information ); + + _CORE_mutex_Initialize( &mutex->Mutex, NULL, &attr, CORE_MUTEX_UNLOCKED ); + + _Objects_Open_u32( &_API_Mutex_Information, &mutex->Object, 1 ); + + *the_mutex = mutex; +} diff --git a/cpukit/score/src/apimutexallocate.c b/cpukit/score/src/apimutexallocate.c deleted file mode 100644 index c57cc66e6b..0000000000 --- a/cpukit/score/src/apimutexallocate.c +++ /dev/null @@ -1,45 +0,0 @@ -/** - * @file - * - * @brief Allocates an API Mutex from the Inactive Set - * @ingroup ScoreAPIMutex - */ - -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include <rtems/system.h> -#include <rtems/score/apimutex.h> -#include <rtems/score/coremuteximpl.h> - -void _API_Mutex_Allocate( - API_Mutex_Control **the_mutex -) -{ - API_Mutex_Control *mutex; - - CORE_mutex_Attributes attr = { - CORE_MUTEX_NESTING_ACQUIRES, - false, - CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT, - 0 - }; - - mutex = (API_Mutex_Control *) _Objects_Allocate( &_API_Mutex_Information ); - - _CORE_mutex_Initialize( &mutex->Mutex, NULL, &attr, CORE_MUTEX_UNLOCKED ); - - _Objects_Open_u32( &_API_Mutex_Information, &mutex->Object, 1 ); - - *the_mutex = mutex; -} diff --git a/cpukit/score/src/corebarrierrelease.c b/cpukit/score/src/corebarrierrelease.c index 818d1718cb..f39e72d9fa 100644 --- a/cpukit/score/src/corebarrierrelease.c +++ b/cpukit/score/src/corebarrierrelease.c @@ -20,6 +20,7 @@ #endif #include <rtems/score/corebarrierimpl.h> +#include <rtems/score/objectimpl.h> #include <rtems/score/threadqimpl.h> uint32_t _CORE_barrier_Release( diff --git a/cpukit/score/src/coremsgbroadcast.c b/cpukit/score/src/coremsgbroadcast.c index d860eb11a8..595305cbb1 100644 --- a/cpukit/score/src/coremsgbroadcast.c +++ b/cpukit/score/src/coremsgbroadcast.c @@ -18,13 +18,9 @@ #include "config.h" #endif -#include <rtems/system.h> -#include <rtems/score/chain.h> -#include <rtems/score/isr.h> -#include <rtems/score/object.h> #include <rtems/score/coremsgimpl.h> +#include <rtems/score/objectimpl.h> #include <rtems/score/thread.h> -#include <rtems/score/wkspace.h> CORE_message_queue_Status _CORE_message_queue_Broadcast( CORE_message_queue_Control *the_message_queue, diff --git a/cpukit/score/src/coremsgclose.c b/cpukit/score/src/coremsgclose.c index 946a4f5653..9f63e1314b 100644 --- a/cpukit/score/src/coremsgclose.c +++ b/cpukit/score/src/coremsgclose.c @@ -21,7 +21,6 @@ #include <rtems/system.h> #include <rtems/score/chain.h> #include <rtems/score/isr.h> -#include <rtems/score/object.h> #include <rtems/score/coremsgimpl.h> #include <rtems/score/thread.h> #include <rtems/score/wkspace.h> diff --git a/cpukit/score/src/coremsgflush.c b/cpukit/score/src/coremsgflush.c index 169b1472f7..c6aefeb166 100644 --- a/cpukit/score/src/coremsgflush.c +++ b/cpukit/score/src/coremsgflush.c @@ -21,7 +21,6 @@ #include <rtems/system.h> #include <rtems/score/chain.h> #include <rtems/score/isr.h> -#include <rtems/score/object.h> #include <rtems/score/coremsgimpl.h> #include <rtems/score/thread.h> #include <rtems/score/wkspace.h> diff --git a/cpukit/score/src/coremsgflushsupp.c b/cpukit/score/src/coremsgflushsupp.c index 436e77f2c6..0fb4718298 100644 --- a/cpukit/score/src/coremsgflushsupp.c +++ b/cpukit/score/src/coremsgflushsupp.c @@ -22,7 +22,6 @@ #include <rtems/system.h> #include <rtems/score/chain.h> #include <rtems/score/isr.h> -#include <rtems/score/object.h> #include <rtems/score/coremsgimpl.h> #include <rtems/score/thread.h> #include <rtems/score/wkspace.h> diff --git a/cpukit/score/src/coremsgflushwait.c b/cpukit/score/src/coremsgflushwait.c index 4355239497..ab238509b4 100644 --- a/cpukit/score/src/coremsgflushwait.c +++ b/cpukit/score/src/coremsgflushwait.c @@ -22,7 +22,6 @@ #include <rtems/system.h> #include <rtems/score/chain.h> #include <rtems/score/isr.h> -#include <rtems/score/object.h> #include <rtems/score/coremsgimpl.h> #include <rtems/score/thread.h> #include <rtems/score/wkspace.h> diff --git a/cpukit/score/src/coremsginsert.c b/cpukit/score/src/coremsginsert.c index fca5f07150..509512e0fd 100644 --- a/cpukit/score/src/coremsginsert.c +++ b/cpukit/score/src/coremsginsert.c @@ -21,7 +21,6 @@ #include <rtems/system.h> #include <rtems/score/chain.h> #include <rtems/score/isr.h> -#include <rtems/score/object.h> #include <rtems/score/coremsgimpl.h> #include <rtems/score/thread.h> #include <rtems/score/wkspace.h> diff --git a/cpukit/score/src/coremsgseize.c b/cpukit/score/src/coremsgseize.c index 24d6f573a2..b3280bf755 100644 --- a/cpukit/score/src/coremsgseize.c +++ b/cpukit/score/src/coremsgseize.c @@ -21,7 +21,6 @@ #include <rtems/system.h> #include <rtems/score/chain.h> #include <rtems/score/isr.h> -#include <rtems/score/object.h> #include <rtems/score/coremsgimpl.h> #include <rtems/score/thread.h> #include <rtems/score/wkspace.h> diff --git a/cpukit/score/src/coremsgsubmit.c b/cpukit/score/src/coremsgsubmit.c index 09982dc2a5..b0b4833640 100644 --- a/cpukit/score/src/coremsgsubmit.c +++ b/cpukit/score/src/coremsgsubmit.c @@ -19,12 +19,9 @@ #include "config.h" #endif -#include <rtems/system.h> -#include <rtems/score/chain.h> -#include <rtems/score/isr.h> -#include <rtems/score/object.h> #include <rtems/score/coremsgimpl.h> -#include <rtems/score/thread.h> +#include <rtems/score/objectimpl.h> +#include <rtems/score/isr.h> #include <rtems/score/wkspace.h> CORE_message_queue_Status _CORE_message_queue_Submit( diff --git a/cpukit/score/src/coresemsurrender.c b/cpukit/score/src/coresemsurrender.c index 58a39299a2..caae4b15c9 100644 --- a/cpukit/score/src/coresemsurrender.c +++ b/cpukit/score/src/coresemsurrender.c @@ -19,10 +19,8 @@ #include "config.h" #endif -#include <rtems/system.h> -#include <rtems/score/isr.h> #include <rtems/score/coresemimpl.h> -#include <rtems/score/thread.h> +#include <rtems/score/objectimpl.h> CORE_semaphore_Status _CORE_semaphore_Surrender( CORE_semaphore_Control *the_semaphore, diff --git a/cpukit/score/src/coretod.c b/cpukit/score/src/coretod.c index 0cde95bbbe..2f664b4b45 100644 --- a/cpukit/score/src/coretod.c +++ b/cpukit/score/src/coretod.c @@ -19,7 +19,6 @@ #endif #include <rtems/system.h> -#include <rtems/score/object.h> #include <rtems/score/thread.h> #include <rtems/score/tod.h> #include <rtems/score/watchdog.h> diff --git a/cpukit/score/src/coretodset.c b/cpukit/score/src/coretodset.c index 3bf5e52de5..5c5e9c452c 100644 --- a/cpukit/score/src/coretodset.c +++ b/cpukit/score/src/coretodset.c @@ -19,7 +19,6 @@ #endif #include <rtems/system.h> -#include <rtems/score/object.h> #include <rtems/score/thread.h> #include <rtems/score/threaddispatch.h> #include <rtems/score/timestamp.h> diff --git a/cpukit/score/src/coretodtickle.c b/cpukit/score/src/coretodtickle.c index 4f53befe8d..d55c054a82 100644 --- a/cpukit/score/src/coretodtickle.c +++ b/cpukit/score/src/coretodtickle.c @@ -19,7 +19,6 @@ #endif #include <rtems/system.h> -#include <rtems/score/object.h> #include <rtems/score/thread.h> #include <rtems/score/timestamp.h> #include <rtems/score/tod.h> diff --git a/cpukit/score/src/iterateoverthreads.c b/cpukit/score/src/iterateoverthreads.c index 78e769bb00..de2c5befde 100644 --- a/cpukit/score/src/iterateoverthreads.c +++ b/cpukit/score/src/iterateoverthreads.c @@ -18,8 +18,8 @@ #include "config.h" #endif -#include <rtems/system.h> #include <rtems/score/thread.h> +#include <rtems/score/objectimpl.h> void rtems_iterate_over_all_threads(rtems_per_thread_routine routine) { diff --git a/cpukit/score/src/objectactivecount.c b/cpukit/score/src/objectactivecount.c index 2cfa56aefb..3abc27fa9e 100644 --- a/cpukit/score/src/objectactivecount.c +++ b/cpukit/score/src/objectactivecount.c @@ -16,7 +16,7 @@ #include "config.h" #endif -#include <rtems/score/object.h> +#include <rtems/score/objectimpl.h> #include <rtems/score/chainimpl.h> Objects_Maximum _Objects_Active_count( diff --git a/cpukit/score/src/objectallocate.c b/cpukit/score/src/objectallocate.c index 6d1818229d..d07b7b90e3 100644 --- a/cpukit/score/src/objectallocate.c +++ b/cpukit/score/src/objectallocate.c @@ -18,16 +18,8 @@ #include "config.h" #endif -#include <rtems/system.h> -#include <rtems/score/address.h> +#include <rtems/score/objectimpl.h> #include <rtems/score/chainimpl.h> -#include <rtems/score/object.h> -#if defined(RTEMS_MULTIPROCESSING) -#include <rtems/score/objectmp.h> -#endif -#include <rtems/score/thread.h> -#include <rtems/score/wkspace.h> -#include <rtems/score/isr.h> /* #define RTEMS_DEBUG_OBJECT_ALLOCATION */ diff --git a/cpukit/score/src/objectapimaximumclass.c b/cpukit/score/src/objectapimaximumclass.c index 4cd54d8efe..9d718fc576 100644 --- a/cpukit/score/src/objectapimaximumclass.c +++ b/cpukit/score/src/objectapimaximumclass.c @@ -18,8 +18,7 @@ #include "config.h" #endif -#include <rtems/system.h> -#include <rtems/score/object.h> +#include <rtems/score/objectimpl.h> unsigned int _Objects_API_maximum_class( uint32_t api diff --git a/cpukit/score/src/objectclose.c b/cpukit/score/src/objectclose.c index e669504782..55d76b0782 100644 --- a/cpukit/score/src/objectclose.c +++ b/cpukit/score/src/objectclose.c @@ -18,9 +18,7 @@ #include "config.h" #endif -#include <rtems/system.h> -#include <rtems/score/object.h> -#include <rtems/score/wkspace.h> +#include <rtems/score/objectimpl.h> void _Objects_Close( Objects_Information *information, diff --git a/cpukit/score/src/objectextendinformation.c b/cpukit/score/src/objectextendinformation.c index 96b26f3f3a..c9f874ea89 100644 --- a/cpukit/score/src/objectextendinformation.c +++ b/cpukit/score/src/objectextendinformation.c @@ -18,16 +18,11 @@ #include "config.h" #endif -#include <rtems/system.h> +#include <rtems/score/objectimpl.h> #include <rtems/score/address.h> #include <rtems/score/chainimpl.h> -#include <rtems/score/object.h> -#if defined(RTEMS_MULTIPROCESSING) -#include <rtems/score/objectmp.h> -#endif -#include <rtems/score/thread.h> +#include <rtems/score/isrlevel.h> #include <rtems/score/wkspace.h> -#include <rtems/score/isr.h> #include <string.h> /* for memcpy() */ diff --git a/cpukit/score/src/objectfree.c b/cpukit/score/src/objectfree.c index d6861118c9..0bfffb9d84 100644 --- a/cpukit/score/src/objectfree.c +++ b/cpukit/score/src/objectfree.c @@ -18,16 +18,8 @@ #include "config.h" #endif -#include <rtems/system.h> -#include <rtems/score/address.h> +#include <rtems/score/objectimpl.h> #include <rtems/score/chainimpl.h> -#include <rtems/score/object.h> -#if defined(RTEMS_MULTIPROCESSING) -#include <rtems/score/objectmp.h> -#endif -#include <rtems/score/thread.h> -#include <rtems/score/wkspace.h> -#include <rtems/score/isr.h> void _Objects_Free( Objects_Information *information, diff --git a/cpukit/score/src/objectget.c b/cpukit/score/src/objectget.c index 5d05cc83a2..2da1295697 100644 --- a/cpukit/score/src/objectget.c +++ b/cpukit/score/src/objectget.c @@ -18,16 +18,7 @@ #include "config.h" #endif -#include <rtems/system.h> -#include <rtems/score/address.h> -#include <rtems/score/chain.h> -#include <rtems/score/object.h> -#if defined(RTEMS_MULTIPROCESSING) -#include <rtems/score/objectmp.h> -#endif -#include <rtems/score/thread.h> -#include <rtems/score/wkspace.h> -#include <rtems/score/isr.h> +#include <rtems/score/objectimpl.h> Objects_Control *_Objects_Get( Objects_Information *information, diff --git a/cpukit/score/src/objectgetinfo.c b/cpukit/score/src/objectgetinfo.c index 3955acc3ca..8b4a26b07b 100644 --- a/cpukit/score/src/objectgetinfo.c +++ b/cpukit/score/src/objectgetinfo.c @@ -18,10 +18,7 @@ #include "config.h" #endif -#include <rtems/system.h> -#include <rtems/score/object.h> -#include <rtems/score/thread.h> -#include <rtems/score/wkspace.h> +#include <rtems/score/objectimpl.h> Objects_Information *_Objects_Get_information( Objects_APIs the_api, diff --git a/cpukit/score/src/objectgetinfoid.c b/cpukit/score/src/objectgetinfoid.c index b6b13534b4..29e02bcc0f 100644 --- a/cpukit/score/src/objectgetinfoid.c +++ b/cpukit/score/src/objectgetinfoid.c @@ -19,9 +19,7 @@ #include "config.h" #endif -#include <rtems/system.h> -#include <rtems/score/object.h> -#include <rtems/score/thread.h> +#include <rtems/score/objectimpl.h> Objects_Information *_Objects_Get_information_id( Objects_Id id diff --git a/cpukit/score/src/objectgetisr.c b/cpukit/score/src/objectgetisr.c index a7073842ac..651037feda 100644 --- a/cpukit/score/src/objectgetisr.c +++ b/cpukit/score/src/objectgetisr.c @@ -18,16 +18,7 @@ #include "config.h" #endif -#include <rtems/system.h> -#include <rtems/score/address.h> -#include <rtems/score/chain.h> -#include <rtems/score/object.h> -#if defined(RTEMS_MULTIPROCESSING) -#include <rtems/score/objectmp.h> -#endif -#include <rtems/score/thread.h> -#include <rtems/score/wkspace.h> -#include <rtems/score/isr.h> +#include <rtems/score/objectimpl.h> Objects_Control *_Objects_Get_isr_disable( Objects_Information *information, diff --git a/cpukit/score/src/objectgetnameasstring.c b/cpukit/score/src/objectgetnameasstring.c index 2e2c18ee6b..c7906a08b6 100644 --- a/cpukit/score/src/objectgetnameasstring.c +++ b/cpukit/score/src/objectgetnameasstring.c @@ -19,7 +19,6 @@ #include "config.h" #endif -#include <rtems/score/object.h> #include <rtems/score/threadimpl.h> #include <ctype.h> diff --git a/cpukit/score/src/objectgetnext.c b/cpukit/score/src/objectgetnext.c index 2a0ef43488..1ea6a58950 100644 --- a/cpukit/score/src/objectgetnext.c +++ b/cpukit/score/src/objectgetnext.c @@ -18,16 +18,7 @@ #include "config.h" #endif -#include <rtems/system.h> -#include <rtems/score/address.h> -#include <rtems/score/chain.h> -#include <rtems/score/object.h> -#if defined(RTEMS_MULTIPROCESSING) -#include <rtems/score/objectmp.h> -#endif -#include <rtems/score/thread.h> -#include <rtems/score/wkspace.h> -#include <rtems/score/isr.h> +#include <rtems/score/objectimpl.h> /* * _Objects_Get_next diff --git a/cpukit/score/src/objectgetnoprotection.c b/cpukit/score/src/objectgetnoprotection.c index e2083b4d09..4d376cde97 100644 --- a/cpukit/score/src/objectgetnoprotection.c +++ b/cpukit/score/src/objectgetnoprotection.c @@ -18,16 +18,7 @@ #include "config.h" #endif -#include <rtems/system.h> -#include <rtems/score/address.h> -#include <rtems/score/chain.h> -#include <rtems/score/object.h> -#if defined(RTEMS_MULTIPROCESSING) -#include <rtems/score/objectmp.h> -#endif -#include <rtems/score/thread.h> -#include <rtems/score/wkspace.h> -#include <rtems/score/isr.h> +#include <rtems/score/objectimpl.h> Objects_Control *_Objects_Get_no_protection( Objects_Information *information, diff --git a/cpukit/score/src/objectidtoname.c b/cpukit/score/src/objectidtoname.c index 54e4228b28..9aa0f10496 100644 --- a/cpukit/score/src/objectidtoname.c +++ b/cpukit/score/src/objectidtoname.c @@ -18,7 +18,6 @@ #include "config.h" #endif -#include <rtems/score/object.h> #include <rtems/score/threadimpl.h> Objects_Name_or_id_lookup_errors _Objects_Id_to_name ( diff --git a/cpukit/score/src/objectinitializeinformation.c b/cpukit/score/src/objectinitializeinformation.c index 82c488a13f..a791bd7220 100644 --- a/cpukit/score/src/objectinitializeinformation.c +++ b/cpukit/score/src/objectinitializeinformation.c @@ -18,17 +18,11 @@ #include "config.h" #endif -#include <rtems/system.h> -#include <rtems/score/address.h> +#include <rtems/score/objectimpl.h> #include <rtems/score/chainimpl.h> -#include <rtems/score/object.h> -#if defined(RTEMS_MULTIPROCESSING) -#include <rtems/score/objectmp.h> -#endif -#include <rtems/score/thread.h> -#include <rtems/score/wkspace.h> +#include <rtems/score/interr.h> #include <rtems/score/sysstate.h> -#include <rtems/score/isr.h> +#include <rtems/score/wkspace.h> void _Objects_Initialize_information( Objects_Information *information, diff --git a/cpukit/score/src/objectmp.c b/cpukit/score/src/objectmp.c index 44319b9363..12daae6c91 100644 --- a/cpukit/score/src/objectmp.c +++ b/cpukit/score/src/objectmp.c @@ -18,12 +18,11 @@ #include "config.h" #endif -#include <rtems/system.h> -#include <rtems/config.h> +#include <rtems/score/objectimpl.h> #include <rtems/score/interr.h> -#include <rtems/score/object.h> +#include <rtems/score/threaddispatch.h> #include <rtems/score/wkspace.h> -#include <rtems/score/thread.h> +#include <rtems/config.h> void _Objects_MP_Handler_early_initialization(void) { diff --git a/cpukit/score/src/objectnamespaceremove.c b/cpukit/score/src/objectnamespaceremove.c index cd618457a4..3db39d7854 100644 --- a/cpukit/score/src/objectnamespaceremove.c +++ b/cpukit/score/src/objectnamespaceremove.c @@ -19,8 +19,7 @@ #include "config.h" #endif -#include <rtems/system.h> -#include <rtems/score/object.h> +#include <rtems/score/objectimpl.h> #include <rtems/score/wkspace.h> void _Objects_Namespace_remove( diff --git a/cpukit/score/src/objectnametoid.c b/cpukit/score/src/objectnametoid.c index bf3bb4c6d6..6d35e7cabe 100644 --- a/cpukit/score/src/objectnametoid.c +++ b/cpukit/score/src/objectnametoid.c @@ -18,16 +18,7 @@ #include "config.h" #endif -#include <rtems/system.h> -#include <rtems/score/address.h> -#include <rtems/score/chain.h> -#include <rtems/score/object.h> -#if defined(RTEMS_MULTIPROCESSING) -#include <rtems/score/objectmp.h> -#endif -#include <rtems/score/thread.h> -#include <rtems/score/wkspace.h> -#include <rtems/score/isr.h> +#include <rtems/score/objectimpl.h> Objects_Name_or_id_lookup_errors _Objects_Name_to_id_u32( Objects_Information *information, diff --git a/cpukit/score/src/objectnametoidstring.c b/cpukit/score/src/objectnametoidstring.c index 4023635855..b27ee8a724 100644 --- a/cpukit/score/src/objectnametoidstring.c +++ b/cpukit/score/src/objectnametoidstring.c @@ -18,18 +18,9 @@ #include "config.h" #endif -#include <string.h> +#include <rtems/score/objectimpl.h> -#include <rtems/system.h> -#include <rtems/score/address.h> -#include <rtems/score/chain.h> -#include <rtems/score/object.h> -#if defined(RTEMS_MULTIPROCESSING) -#include <rtems/score/objectmp.h> -#endif -#include <rtems/score/thread.h> -#include <rtems/score/wkspace.h> -#include <rtems/score/isr.h> +#include <string.h> #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) Objects_Name_or_id_lookup_errors _Objects_Name_to_id_string( diff --git a/cpukit/score/src/objectsetname.c b/cpukit/score/src/objectsetname.c index 2bc86cf553..995fa80bff 100644 --- a/cpukit/score/src/objectsetname.c +++ b/cpukit/score/src/objectsetname.c @@ -18,13 +18,9 @@ #include "config.h" #endif -#include <rtems/system.h> -#include <rtems/score/object.h> -#include <rtems/score/thread.h> +#include <rtems/score/objectimpl.h> #include <rtems/score/wkspace.h> -#include <stdlib.h> -#include <ctype.h> -#include <inttypes.h> + #include <string.h> bool _Objects_Set_name( diff --git a/cpukit/score/src/objectshrinkinformation.c b/cpukit/score/src/objectshrinkinformation.c index 686d0f2a5c..453c76c10f 100644 --- a/cpukit/score/src/objectshrinkinformation.c +++ b/cpukit/score/src/objectshrinkinformation.c @@ -18,16 +18,9 @@ #include "config.h" #endif -#include <rtems/system.h> -#include <rtems/score/address.h> +#include <rtems/score/objectimpl.h> #include <rtems/score/chainimpl.h> -#include <rtems/score/object.h> -#if defined(RTEMS_MULTIPROCESSING) -#include <rtems/score/objectmp.h> -#endif -#include <rtems/score/thread.h> #include <rtems/score/wkspace.h> -#include <rtems/score/isr.h> void _Objects_Shrink_information( Objects_Information *information diff --git a/cpukit/score/src/threaddispatchdisablelevel.c b/cpukit/score/src/threaddispatchdisablelevel.c index d15f4b1862..f1c971e33f 100644 --- a/cpukit/score/src/threaddispatchdisablelevel.c +++ b/cpukit/score/src/threaddispatchdisablelevel.c @@ -20,7 +20,6 @@ #include <rtems/score/context.h> #include <rtems/score/interr.h> #include <rtems/score/isr.h> -#include <rtems/score/object.h> #include <rtems/score/priority.h> #include <rtems/score/threaddispatch.h> diff --git a/cpukit/score/src/threadqextractwithproxy.c b/cpukit/score/src/threadqextractwithproxy.c index 6a3e891acf..221fd71706 100644 --- a/cpukit/score/src/threadqextractwithproxy.c +++ b/cpukit/score/src/threadqextractwithproxy.c @@ -24,6 +24,7 @@ #endif #include <rtems/score/threadqimpl.h> +#include <rtems/score/objectimpl.h> #include <rtems/score/statesimpl.h> bool _Thread_queue_Extract_with_proxy( diff --git a/cpukit/score/src/threadqflush.c b/cpukit/score/src/threadqflush.c index a8288afc6c..1e1501e7b8 100644 --- a/cpukit/score/src/threadqflush.c +++ b/cpukit/score/src/threadqflush.c @@ -19,7 +19,7 @@ #endif #include <rtems/score/threadqimpl.h> -#include <rtems/score/object.h> +#include <rtems/score/objectimpl.h> void _Thread_queue_Flush( Thread_queue_Control *the_thread_queue, |