score: Align _Objects_Get_isr_disable()

Align ISR disable/enable sequence in _Objects_Get_isr_disable() with
thread dispatch disable/enable sequence in _Objects_Get().
This commit is contained in:
Sebastian Huber
2013-06-05 10:34:05 +02:00
parent 4fc370e3c6
commit c398c6603a

View File

@@ -43,8 +43,8 @@ Objects_Control *_Objects_Get_isr_disable(
index = id - information->minimum_id + 1;
_ISR_Disable( level );
if ( information->maximum >= index ) {
_ISR_Disable( level );
if ( (the_object = information->local_table[ index ]) != NULL ) {
*location = OBJECTS_LOCAL;
*level_p = level;
@@ -54,7 +54,6 @@ Objects_Control *_Objects_Get_isr_disable(
*location = OBJECTS_ERROR;
return NULL;
}
_ISR_Enable( level );
*location = OBJECTS_ERROR;
#if defined(RTEMS_MULTIPROCESSING)