forked from Imagelibrary/rtems
2007-12-17 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/src/objectget.c: Revert.
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2007-12-17 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
|
* score/src/objectget.c: Revert.
|
||||||
|
|
||||||
2007-12-17 Joel Sherrill <joel.sherrill@OARcorp.com>
|
2007-12-17 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
* posix/src/timergettime.c: Include rtems/score/timespec.h
|
* posix/src/timergettime.c: Include rtems/score/timespec.h
|
||||||
|
|||||||
@@ -59,17 +59,6 @@ Objects_Control *_Objects_Get(
|
|||||||
|
|
||||||
index = id - information->minimum_id + 1;
|
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();
|
_Thread_Disable_dispatch();
|
||||||
if ( (the_object = information->local_table[ index ]) != NULL ) {
|
if ( (the_object = information->local_table[ index ]) != NULL ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user