From ee57a7f1a16dbbedbf07bc629de19667dae131eb Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 23 Mar 2021 15:34:26 +0100 Subject: 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. --- cpukit/rtems/src/semsetpriority.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cpukit/rtems/src/semsetpriority.c') 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 ); } -- cgit v1.2.3