From a6608123c0952979821bbfe4bf58713403c2f9cb Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Sun, 14 Dec 2008 18:31:43 +0000 Subject: 2008-12-14 Joel Sherrill * 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. --- cpukit/itron/src/chg_pri.c | 2 +- cpukit/itron/src/cre_tsk.c | 2 +- cpukit/itron/src/rot_rdq.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'cpukit/itron') 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(); -- cgit v1.2.3