diff options
Diffstat (limited to 'cpukit/score/src/objectget.c')
-rw-r--r-- | cpukit/score/src/objectget.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cpukit/score/src/objectget.c b/cpukit/score/src/objectget.c index 1f51c20a4a..f1f0e3503a 100644 --- a/cpukit/score/src/objectget.c +++ b/cpukit/score/src/objectget.c @@ -57,6 +57,9 @@ Objects_Control *_Objects_Get( Objects_Control *the_object; uint32_t index; + index = id - information->minimum_id + 1; + +#if 0 #if defined(RTEMS_MULTIPROCESSING) index = id - information->minimum_id + 1; #else @@ -65,6 +68,7 @@ Objects_Control *_Objects_Get( /* This should work but doesn't always :( */ /* index = (uint16_t) id; */ #endif +#endif if ( information->maximum >= index ) { _Thread_Disable_dispatch(); |