From 6881e0cb4be86a4e91cd2f4d95c43b20d7b89de4 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 15 Apr 1997 18:02:18 +0000 Subject: Reduced number of POSIX thread priorities from 255 to 254 to avoid conflicts of lowest priority with the RTEMS IDLE thread. This was causing the lowest priority GNAT Ada task to never run. --- cpukit/posix/inline/rtems/posix/priority.inl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cpukit/posix/inline') diff --git a/cpukit/posix/inline/rtems/posix/priority.inl b/cpukit/posix/inline/rtems/posix/priority.inl index cbe340b35a..dc8187d4ef 100644 --- a/cpukit/posix/inline/rtems/posix/priority.inl +++ b/cpukit/posix/inline/rtems/posix/priority.inl @@ -17,21 +17,21 @@ RTEMS_INLINE_ROUTINE boolean _POSIX_Priority_Is_valid( int priority ) { - return (boolean) (priority >= 1 && priority <= 255); + return (boolean) (priority >= 1 && priority <= 254); } RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Priority_To_core( int priority ) { - return (Priority_Control) (256 - priority); + return (Priority_Control) (255 - priority); } RTEMS_INLINE_ROUTINE int _POSIX_Priority_From_core( Priority_Control priority ) { - return 256 - priority; + return 255 - priority; } #endif -- cgit v1.2.3