summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-07-18 14:27:30 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-07-22 16:56:58 +0200
commite36f2b8c914b73bacfc89b997f4a59d5387303ce (patch)
tree19f4c9e363b353ea441c2459e5b697d18c4c8c5e /cpukit/rtems
parentscore: Add const qualifier (diff)
downloadrtems-e36f2b8c914b73bacfc89b997f4a59d5387303ce.tar.bz2
score: Avoid direct usage of _Thread_Executing
Pass the executing thread as a function parameter. Obtain the executing thread inside a thread dispatch critical section to avoid problems on SMP.
Diffstat (limited to '')
-rw-r--r--cpukit/rtems/src/semobtain.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cpukit/rtems/src/semobtain.c b/cpukit/rtems/src/semobtain.c
index 89e7bb643d..f29b9b5458 100644
--- a/cpukit/rtems/src/semobtain.c
+++ b/cpukit/rtems/src/semobtain.c
@@ -71,6 +71,7 @@ rtems_status_code rtems_semaphore_obtain(
/* must be a counting semaphore */
_CORE_semaphore_Seize_isr_disable(
&the_semaphore->Core_control.semaphore,
+ executing,
id,
((_Options_Is_no_wait( option_set )) ? false : true),
timeout,