summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/inline
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1997-04-15 18:02:18 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1997-04-15 18:02:18 +0000
commit6881e0cb4be86a4e91cd2f4d95c43b20d7b89de4 (patch)
treed13120221489f408287925a9afdebdb2f722b33b /cpukit/posix/inline
parentc24fef3e90a4a7b380b5ad60c8372e22c0edc921 (diff)
downloadrtems-6881e0cb4be86a4e91cd2f4d95c43b20d7b89de4.tar.bz2
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.
Diffstat (limited to 'cpukit/posix/inline')
-rw-r--r--cpukit/posix/inline/rtems/posix/priority.inl6
1 files changed, 3 insertions, 3 deletions
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