diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-01-05 20:09:02 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-01-05 20:09:02 +0000 |
commit | b028e725e35629e0405d237942e97a73843ae35b (patch) | |
tree | 5cac5182644fcd11fe996272790b2b9a62cec67b /cpukit/score/src/objectgetisr.c | |
parent | 2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-b028e725e35629e0405d237942e97a73843ae35b.tar.bz2 |
2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/include/rtems/score/object.h,
score/src/objectallocatebyindex.c: Object index should be int.
Fix bug when index is negative.
* score/src/objectextendinformation.c: Do not allow maximum number
of allocated objects to exceed maximum representable in index
field of Object Id.
* score/src/objectgetisr.c: Use same code that is in _Objects_Get
to extract index field of Object Id.
Diffstat (limited to 'cpukit/score/src/objectgetisr.c')
-rw-r--r-- | cpukit/score/src/objectgetisr.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/cpukit/score/src/objectgetisr.c b/cpukit/score/src/objectgetisr.c index 8a53c7b8b5..aca5f0d059 100644 --- a/cpukit/score/src/objectgetisr.c +++ b/cpukit/score/src/objectgetisr.c @@ -61,14 +61,7 @@ Objects_Control *_Objects_Get_isr_disable( uint32_t index; ISR_Level level; -#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 _ISR_Disable( level ); if ( information->maximum >= index ) { |