From a6cbc9b8690825aebde9694e9132230d57d53847 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 17 Dec 2007 16:01:42 +0000 Subject: 2007-12-17 Joel Sherrill * posix/Makefile.am, posix/preinstall.am, posix/include/rtems/posix/timer.h, score/src/objectget.c: Split POSIX Timer implementation into multiple files. Add obvious error checks for NULL parameters. Attempt to reduce include files. * posix/src/timercreate.c, posix/src/timerdelete.c, posix/src/timergetoverrun.c, posix/src/timergettime.c, posix/src/timerinserthelper.c, posix/src/timersettime.c, posix/src/timertsr.c: New files. * posix/src/ptimer1.c: Removed. --- cpukit/score/src/objectget.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cpukit/score/src/objectget.c') 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 @@ -64,6 +67,7 @@ Objects_Control *_Objects_Get( index = id & 0x0000ffff; /* This should work but doesn't always :( */ /* index = (uint16_t) id; */ +#endif #endif if ( information->maximum >= index ) { -- cgit v1.2.3