summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-03-23 15:34:26 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-11-15 09:53:17 +0100
commitee57a7f1a16dbbedbf07bc629de19667dae131eb (patch)
tree375529eee1dbda0034b89fb7cd06051a764f182f /cpukit/rtems
parentscore: Always check if a prio ceiling is defined (diff)
downloadrtems-ee57a7f1a16dbbedbf07bc629de19667dae131eb.tar.bz2
score: Fix _CORE_ceiling_mutex_Set_priority()
We have to use a second thread queue context to acquire and release the thread wait lock. Close #4356.
Diffstat (limited to 'cpukit/rtems')
-rw-r--r--cpukit/rtems/src/semsetpriority.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/cpukit/rtems/src/semsetpriority.c b/cpukit/rtems/src/semsetpriority.c
index adb0320210..119dd85d77 100644
--- a/cpukit/rtems/src/semsetpriority.c
+++ b/cpukit/rtems/src/semsetpriority.c
@@ -85,8 +85,7 @@ static rtems_status_code _Semaphore_Set_priority(
if ( sc == RTEMS_SUCCESSFUL && new_priority != RTEMS_CURRENT_PRIORITY ) {
_CORE_ceiling_mutex_Set_priority(
&the_semaphore->Core_control.Mutex,
- core_priority,
- queue_context
+ core_priority
);
}