summaryrefslogtreecommitdiffstats
path: root/cpukit/itron
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-12-14 18:31:43 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-12-14 18:31:43 +0000
commita6608123c0952979821bbfe4bf58713403c2f9cb (patch)
tree6f3206c34b4f75b3bc5146d9527f165cbc3c9205 /cpukit/itron
parent2008-12-12 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-a6608123c0952979821bbfe4bf58713403c2f9cb.tar.bz2
2008-12-14 Joel Sherrill <joel.sherrill@oarcorp.com>
* itron/src/chg_pri.c, itron/src/cre_tsk.c, itron/src/rot_rdq.c, posix/Makefile.am, posix/include/rtems/posix/mutex.h, posix/include/rtems/posix/priority.h, posix/src/mutex.c, score/include/rtems/score/priority.h: Run all tests successfully with maxixum number of priorities as 16 instead of 256. This was done by temporarily modifying the score priority.h maximum. This allowed testing of all API code to ensure that it worked properly with a reduced number of priorities. Most modifications were to switch from hard-coded maximum to using the SuperCore variable based upon configured number. * posix/src/mutexdefaultattributes.c: Removed.
Diffstat (limited to 'cpukit/itron')
-rw-r--r--cpukit/itron/src/chg_pri.c2
-rw-r--r--cpukit/itron/src/cre_tsk.c2
-rw-r--r--cpukit/itron/src/rot_rdq.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/itron/src/chg_pri.c b/cpukit/itron/src/chg_pri.c
index 2bb4a25090..d47d17cafc 100644
--- a/cpukit/itron/src/chg_pri.c
+++ b/cpukit/itron/src/chg_pri.c
@@ -48,7 +48,7 @@ ER chg_pri(
if (_States_Is_dormant( the_thread->current_state ))
_ITRON_return_errorno( E_OBJ );
- if (( tskpri <= 0 ) || ( tskpri >= 256 ))
+ if (( tskpri <= 0 ) || ( tskpri >= PRIORITY_MAXIMUM-1 ))
_ITRON_return_errorno( E_PAR );
new_priority = _ITRON_Task_Priority_to_Core( tskpri );
diff --git a/cpukit/itron/src/cre_tsk.c b/cpukit/itron/src/cre_tsk.c
index a0939ee785..fb8164423f 100644
--- a/cpukit/itron/src/cre_tsk.c
+++ b/cpukit/itron/src/cre_tsk.c
@@ -58,7 +58,7 @@ ER cre_tsk(
(pk_ctsk->tskatr != TA_COP7))
return E_RSATR;
- if (( pk_ctsk->itskpri <= 0 ) || ( pk_ctsk->itskpri >= 256 ))
+ if (( pk_ctsk->itskpri <= 0 ) || ( pk_ctsk->itskpri >= PRIORITY_MAXIMUM-1 ))
return E_PAR;
if ( pk_ctsk->task == NULL )
return E_PAR;
diff --git a/cpukit/itron/src/rot_rdq.c b/cpukit/itron/src/rot_rdq.c
index 80e9e5c95e..9f57321dc9 100644
--- a/cpukit/itron/src/rot_rdq.c
+++ b/cpukit/itron/src/rot_rdq.c
@@ -34,7 +34,7 @@ ER rot_rdq(
PRI priority;
- if (( tskpri <= 0 ) || ( tskpri >= 256 ))
+ if (( tskpri <= 0 ) || ( tskpri >= PRIORITY_MAXIMUM-1 ))
return E_PAR;
_Thread_Disable_dispatch();