diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-12-17 16:01:42 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-12-17 16:01:42 +0000 |
commit | a6cbc9b8690825aebde9694e9132230d57d53847 (patch) | |
tree | 0974c40531822c54d167e4bdea37e57dca40ec9e /cpukit/score/src | |
parent | Formatting. (diff) | |
download | rtems-a6cbc9b8690825aebde9694e9132230d57d53847.tar.bz2 |
2007-12-17 Joel Sherrill <joel.sherrill@OARcorp.com>
* 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.
Diffstat (limited to 'cpukit/score/src')
-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(); |