From 0f2aefde75d243dc95f8fad58d080eb6e0e83f86 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 17 Dec 2007 17:15:50 +0000 Subject: 2007-12-17 Joel Sherrill * score/src/objectget.c: Revert. --- cpukit/score/src/objectget.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'cpukit/score/src/objectget.c') diff --git a/cpukit/score/src/objectget.c b/cpukit/score/src/objectget.c index f1f0e3503a..d0414113eb 100644 --- a/cpukit/score/src/objectget.c +++ b/cpukit/score/src/objectget.c @@ -59,18 +59,7 @@ Objects_Control *_Objects_Get( index = id - information->minimum_id + 1; -#if 0 -#if defined(RTEMS_MULTIPROCESSING) - index = id - information->minimum_id + 1; -#else - /* index = _Objects_Get_index( id ); */ - index = id & 0x0000ffff; - /* This should work but doesn't always :( */ - /* index = (uint16_t) id; */ -#endif -#endif - - if ( information->maximum >= index ) { + if ( information->maximum >= index ) { _Thread_Disable_dispatch(); if ( (the_object = information->local_table[ index ]) != NULL ) { *location = OBJECTS_LOCAL; -- cgit v1.2.3