diff options
-rw-r--r-- | c/src/exec/posix/src/mutex.c | 4 | ||||
-rw-r--r-- | cpukit/posix/src/mutex.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/c/src/exec/posix/src/mutex.c b/c/src/exec/posix/src/mutex.c index eaa946fcfd..037791a252 100644 --- a/c/src/exec/posix/src/mutex.c +++ b/c/src/exec/posix/src/mutex.c @@ -635,7 +635,9 @@ int pthread_mutex_setprioceiling( /* XXX It feels questionable to set the ceiling on a remote mutex. */ return EINVAL; case OBJECTS_LOCAL: - *old_ceiling = the_mutex->Mutex.Attributes.priority_ceiling; + *old_ceiling = _POSIX_Priority_From_core( + the_mutex->Mutex.Attributes.priority_ceiling + ); the_mutex->Mutex.Attributes.priority_ceiling = the_priority; _CORE_mutex_Surrender( &the_mutex->Mutex, diff --git a/cpukit/posix/src/mutex.c b/cpukit/posix/src/mutex.c index eaa946fcfd..037791a252 100644 --- a/cpukit/posix/src/mutex.c +++ b/cpukit/posix/src/mutex.c @@ -635,7 +635,9 @@ int pthread_mutex_setprioceiling( /* XXX It feels questionable to set the ceiling on a remote mutex. */ return EINVAL; case OBJECTS_LOCAL: - *old_ceiling = the_mutex->Mutex.Attributes.priority_ceiling; + *old_ceiling = _POSIX_Priority_From_core( + the_mutex->Mutex.Attributes.priority_ceiling + ); the_mutex->Mutex.Attributes.priority_ceiling = the_priority; _CORE_mutex_Surrender( &the_mutex->Mutex, |