summaryrefslogtreecommitdiffstats
path: root/cpukit/score
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score')
-rw-r--r--cpukit/score/inline/rtems/score/object.inl14
-rw-r--r--cpukit/score/src/objectgetisr.c6
2 files changed, 20 insertions, 0 deletions
diff --git a/cpukit/score/inline/rtems/score/object.inl b/cpukit/score/inline/rtems/score/object.inl
index efdb23d0e3..54365fa8eb 100644
--- a/cpukit/score/inline/rtems/score/object.inl
+++ b/cpukit/score/inline/rtems/score/object.inl
@@ -375,4 +375,18 @@ RTEMS_INLINE_ROUTINE bool _Objects_Is_unlimited( uint32_t maximum )
((Objects_Maximum) ((maximum) & ~OBJECTS_UNLIMITED_OBJECTS))
#endif
+
+/**
+ * @brief Puts back an object obtained with _Objects_Get_isr_disable().
+ */
+RTEMS_INLINE_ROUTINE void _Objects_Put_for_get_isr_disable(
+ Objects_Control *the_object
+)
+{
+ (void) the_object;
+#if defined(RTEMS_SMP)
+ _Thread_Enable_dispatch();
+#endif
+}
+
/* end of include file */
diff --git a/cpukit/score/src/objectgetisr.c b/cpukit/score/src/objectgetisr.c
index 9eeee3cc71..56f74715e1 100644
--- a/cpukit/score/src/objectgetisr.c
+++ b/cpukit/score/src/objectgetisr.c
@@ -44,6 +44,9 @@ Objects_Control *_Objects_Get_isr_disable(
index = id - information->minimum_id + 1;
if ( information->maximum >= index ) {
+#if defined(RTEMS_SMP)
+ _Thread_Disable_dispatch();
+#endif
_ISR_Disable( level );
if ( (the_object = information->local_table[ index ]) != NULL ) {
*location = OBJECTS_LOCAL;
@@ -51,6 +54,9 @@ Objects_Control *_Objects_Get_isr_disable(
return the_object;
}
_ISR_Enable( level );
+#if defined(RTEMS_SMP)
+ _Thread_Enable_dispatch();
+#endif
*location = OBJECTS_ERROR;
return NULL;
}