diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-01-11 13:41:55 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-01-11 13:52:08 +0100 |
commit | 3d35bc00d8483a748c819012c860550271c37b9a (patch) | |
tree | c202f5b62d78440c3e3b00cddffbda75da966599 /cpukit/score/include/rtems/score/threadqimpl.h | |
parent | score: Optimize thread state values (diff) | |
download | rtems-3d35bc00d8483a748c819012c860550271c37b9a.tar.bz2 |
score: Improve SMP lock debug support
The CPU index starts with zero. Increment it by one, to allow global
SMP locks to reside in the BSS section.
Diffstat (limited to 'cpukit/score/include/rtems/score/threadqimpl.h')
-rw-r--r-- | cpukit/score/include/rtems/score/threadqimpl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/score/include/rtems/score/threadqimpl.h b/cpukit/score/include/rtems/score/threadqimpl.h index fc907d3936..1558489fca 100644 --- a/cpukit/score/include/rtems/score/threadqimpl.h +++ b/cpukit/score/include/rtems/score/threadqimpl.h @@ -467,7 +467,7 @@ RTEMS_INLINE_ROUTINE bool _Thread_queue_Is_lock_owner( ) { #if defined(RTEMS_SMP) - return the_thread_queue->owner == _SMP_Get_current_processor(); + return the_thread_queue->owner == _SMP_lock_Who_am_I(); #else return _ISR_Get_level() != 0; #endif |