diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-12-14 19:13:56 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-12-14 19:13:56 +0000 |
commit | de48cb67a21ab86a7af58154ffdee34e6fe1da92 (patch) | |
tree | c92dc7614efe692c23ea9570e89fcc00036d2b07 /testsuites/samples/unlimited/init.c | |
parent | 2008-12-14 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-de48cb67a21ab86a7af58154ffdee34e6fe1da92.tar.bz2 |
2008-12-14 Joel Sherrill <joel.sherrill@oarcorp.com>
* unlimited/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/samples/unlimited/init.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/testsuites/samples/unlimited/init.c b/testsuites/samples/unlimited/init.c index 8d7445977c..035374752d 100644 --- a/testsuites/samples/unlimited/init.c +++ b/testsuites/samples/unlimited/init.c @@ -37,11 +37,12 @@ rtems_task Init( { rtems_task_priority old_priority; rtems_mode old_mode; - uint32_t task; + uint32_t task; /* lower the task priority to allow created tasks to execute */ - rtems_task_set_priority(RTEMS_SELF, 20, &old_priority); + rtems_task_set_priority( + RTEMS_SELF, RTEMS_MAXIMUM_PRIORITY - 1, &old_priority); rtems_task_mode(RTEMS_PREEMPT, RTEMS_PREEMPT_MASK, &old_mode); printf( "\n*** UNLIMITED TASK TEST ***\n" ); |