summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/threadq.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-01-11 13:41:55 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-01-11 13:52:08 +0100
commit3d35bc00d8483a748c819012c860550271c37b9a (patch)
treec202f5b62d78440c3e3b00cddffbda75da966599 /cpukit/score/src/threadq.c
parentscore: Optimize thread state values (diff)
downloadrtems-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 '')
-rw-r--r--cpukit/score/src/threadq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/score/src/threadq.c b/cpukit/score/src/threadq.c
index d427431adb..b12e3deb49 100644
--- a/cpukit/score/src/threadq.c
+++ b/cpukit/score/src/threadq.c
@@ -76,7 +76,7 @@ void _Thread_queue_Do_acquire_critical(
lock_context
);
#if defined(RTEMS_DEBUG)
- the_thread_queue->owner = _SMP_Get_current_processor();
+ the_thread_queue->owner = _SMP_lock_Who_am_I();
#endif
}
@@ -92,7 +92,7 @@ void _Thread_queue_Acquire(
&queue_context->Lock_context.Lock_context
);
#if defined(RTEMS_DEBUG)
- the_thread_queue->owner = _SMP_Get_current_processor();
+ the_thread_queue->owner = _SMP_lock_Who_am_I();
#endif
}