summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/smplock.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/include/rtems/score/smplock.h')
-rw-r--r--cpukit/score/include/rtems/score/smplock.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/cpukit/score/include/rtems/score/smplock.h b/cpukit/score/include/rtems/score/smplock.h
index 0cefe38aa3..47797d3294 100644
--- a/cpukit/score/include/rtems/score/smplock.h
+++ b/cpukit/score/include/rtems/score/smplock.h
@@ -398,6 +398,9 @@ typedef struct {
*/
typedef struct {
ISR_Level isr_level;
+#if defined( RTEMS_DEBUG )
+ SMP_lock_Control *lock_used_for_acquire;
+#endif
#if defined( RTEMS_PROFILING )
SMP_lock_Stats_context Stats_context;
#endif
@@ -578,11 +581,8 @@ void _SMP_lock_Release_and_ISR_enable(
SMP_lock_Control *lock,
SMP_lock_Context *context
);
-
-static inline void _SMP_lock_Release_and_ISR_enable_body(
#else
static inline void _SMP_lock_Release_and_ISR_enable(
-#endif
SMP_lock_Control *lock,
SMP_lock_Context *context
)
@@ -590,6 +590,7 @@ static inline void _SMP_lock_Release_and_ISR_enable(
_SMP_lock_Release( lock, context );
_ISR_Enable_without_giant( context->isr_level );
}
+#endif
#if defined( RTEMS_DEBUG )
/**