diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-12-14 18:36:00 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-12-14 18:36:00 +0000 |
commit | a986c0757ad4c5f843502bcea0a5e7211368444e (patch) | |
tree | efc60f55510c7b0e92a056550e139e96ae6b2f70 /testsuites/sptests/sp42/init.c | |
parent | 2008-12-14 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-a986c0757ad4c5f843502bcea0a5e7211368444e.tar.bz2 |
2008-12-14 Joel Sherrill <joel.sherrill@oarcorp.com>
* sp07/init.c, sp12/init.c, sp12/pridrv.c, sp12/pritask.c,
sp12/system.h, sp16/system.h, sp25/system.h, sp26/task1.c,
sp28/init.c, sp29/init.c, sp35/priinv.c, sp42/init.c: 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 API provided methods
to determine maximum number of priority levels.
Diffstat (limited to '')
-rw-r--r-- | testsuites/sptests/sp42/init.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuites/sptests/sp42/init.c b/testsuites/sptests/sp42/init.c index 66934a594d..da02b1cbb6 100644 --- a/testsuites/sptests/sp42/init.c +++ b/testsuites/sptests/sp42/init.c @@ -25,6 +25,7 @@ * Somewhat randomly sorted to ensure than if discipline is FIFO, run-time * behavior won't be the same when released. */ +#if (RTEMS_MAXIMUM_PRIORITY >= 64) rtems_task_priority Priorities[MAX_TASKS] = { 37, 37, 37, 37, /* backward - more 2-n */ 2, 2, 2, 2, /* forward - multiple are on 2-n chain */ @@ -33,6 +34,16 @@ rtems_task_priority Priorities[MAX_TASKS] = { 38, 37, /* backward - search backward arbitrary */ 34, 34, 34, 34, /* backward - multple on 2-n chain */ }; +#else +rtems_task_priority Priorities[MAX_TASKS] = { + 13, 13, 13, 13, /* backward - more 2-n */ + 2, 2, 2, 2, /* forward - multiple are on 2-n chain */ + 4, 3, /* forward - search forward arbitrary */ + 3, 3, 3, 3, /* forward - more 2-n */ + 14, 13, /* backward - search backward arbitrary */ + 12, 12, 12, 12, /* backward - multple on 2-n chain */ +}; +#endif rtems_id Semaphore; |