diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2004-11-01 13:15:40 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2004-11-01 13:15:40 +0000 |
commit | 85b7605b323427c734af15a7f36e5839bb865385 (patch) | |
tree | b415fb7d82afe5993d382ae103e9d7612620637b /cpukit/score/inline/rtems/score/object.inl | |
parent | 2004-11-01 Ralf Corsepius <ralf_corsepius@rtems.org> (diff) | |
download | rtems-85b7605b323427c734af15a7f36e5839bb865385.tar.bz2 |
2004-11-01 Joel Sherrill <joel@oarcorp.com>
* score/include/rtems/score/object.h,
score/inline/rtems/score/object.inl,
score/macros/rtems/score/object.inl: Add first cut of optional
16 bit object Id as space reduction for small systems (TinyRTEMS).
Diffstat (limited to 'cpukit/score/inline/rtems/score/object.inl')
-rw-r--r-- | cpukit/score/inline/rtems/score/object.inl | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/cpukit/score/inline/rtems/score/object.inl b/cpukit/score/inline/rtems/score/object.inl index fa2c0478e5..647b7f9a66 100644 --- a/cpukit/score/inline/rtems/score/object.inl +++ b/cpukit/score/inline/rtems/score/object.inl @@ -131,12 +131,14 @@ RTEMS_INLINE_ROUTINE boolean _Objects_Is_class_valid( * FALSE otherwise. */ +#if defined(RTEMS_MULTIPROCESSING) RTEMS_INLINE_ROUTINE boolean _Objects_Is_local_node( uint32_t node ) { return ( node == _Objects_Local_node ); } +#endif /*PAGE * @@ -148,12 +150,14 @@ RTEMS_INLINE_ROUTINE boolean _Objects_Is_local_node( * FALSE otherwise. */ +#if defined(RTEMS_MULTIPROCESSING) RTEMS_INLINE_ROUTINE boolean _Objects_Is_local_id( Objects_Id id ) { return _Objects_Is_local_node( _Objects_Get_node(id) ); } +#endif /*PAGE * @@ -185,7 +189,7 @@ RTEMS_INLINE_ROUTINE boolean _Objects_Are_ids_equal( RTEMS_INLINE_ROUTINE Objects_Control *_Objects_Get_local_object( Objects_Information *information, - uint32_t index + uint16_t index ) { if ( index > information->maximum ) @@ -205,7 +209,7 @@ RTEMS_INLINE_ROUTINE Objects_Control *_Objects_Get_local_object( RTEMS_INLINE_ROUTINE void _Objects_Set_local_object( Objects_Information *information, - uint32_t index, + uint16_t index, Objects_Control *the_object ) { @@ -229,7 +233,7 @@ RTEMS_INLINE_ROUTINE Objects_Information *_Objects_Get_information( ) { Objects_APIs the_api; - uint32_t the_class; + uint16_t the_class; the_class = _Objects_Get_class( id ); |