[rtems commit] score: Align _Objects_Get_isr_disable()
Sebastian Huber
sebh at rtems.org
Fri Jun 7 15:02:23 UTC 2013
Module: rtems
Branch: master
Commit: c398c6603a85633af04e314993ee085a033e0c58
Changeset: http://git.rtems.org/rtems/commit/?id=c398c6603a85633af04e314993ee085a033e0c58
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed Jun 5 10:34:05 2013 +0200
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().
---
cpukit/score/src/objectgetisr.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/cpukit/score/src/objectgetisr.c b/cpukit/score/src/objectgetisr.c
index 4a281c2..9eeee3c 100644
--- a/cpukit/score/src/objectgetisr.c
+++ b/cpukit/score/src/objectgetisr.c
@@ -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)
More information about the vc
mailing list