summaryrefslogtreecommitdiffstats
path: root/testsuites/tmtests/tm27
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-12-14 18:38:45 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-12-14 18:38:45 +0000
commit4389287a3964ae5b8e08f5268823e832272c78e1 (patch)
treee6eb439c43b388701c3a47908f78108abf290517 /testsuites/tmtests/tm27
parent2008-12-14 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-4389287a3964ae5b8e08f5268823e832272c78e1.tar.bz2
2008-12-14 Joel Sherrill <joel.sherrill@oarcorp.com>
* tm01/task1.c, tm02/task1.c, tm03/task1.c, tm04/task1.c, tm05/task1.c, tm06/task1.c, tm07/task1.c, tm08/task1.c, tm09/task1.c, tm10/task1.c, tm11/task1.c, tm12/task1.c, tm13/task1.c, tm14/task1.c, tm16/task1.c, tm17/task1.c, tm18/task1.c, tm19/task1.c, tm20/task1.c, tm21/task1.c, tm23/task1.c, tm24/task1.c, tm25/task1.c, tm26/task1.c, tm27/task1.c, tm28/task1.c, tm29/task1.c, tmoverhd/testtask.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 'testsuites/tmtests/tm27')
-rw-r--r--testsuites/tmtests/tm27/task1.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/testsuites/tmtests/tm27/task1.c b/testsuites/tmtests/tm27/task1.c
index 3794c51354..9d63cf2fd5 100644
--- a/testsuites/tmtests/tm27/task1.c
+++ b/testsuites/tmtests/tm27/task1.c
@@ -1,6 +1,5 @@
/*
- *
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2008.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -52,9 +51,10 @@ rtems_task Init(
puts( "\n\n*** TIME TEST 27 ***" );
+#define LOW_PRIORITY (RTEMS_MAXIMUM_PRIORITY - 1)
status = rtems_task_create(
rtems_build_name( 'T', 'A', '1', ' ' ),
- 254,
+ LOW_PRIORITY,
RTEMS_MINIMUM_STACK_SIZE,
RTEMS_DEFAULT_MODES,
RTEMS_DEFAULT_ATTRIBUTES,
@@ -67,7 +67,7 @@ rtems_task Init(
status = rtems_task_create(
rtems_build_name( 'T', 'A', '2', ' ' ),
- 254,
+ LOW_PRIORITY,
RTEMS_MINIMUM_STACK_SIZE,
RTEMS_DEFAULT_MODES,
RTEMS_DEFAULT_ATTRIBUTES,
@@ -170,7 +170,7 @@ rtems_task Task_1(
_Thread_Dispatch_disable_level = 0;
- _Thread_Heir = (rtems_tcb *) _Thread_Ready_chain[254].last;
+ _Thread_Heir = (rtems_tcb *) _Thread_Ready_chain[LOW_PRIORITY].last;
_Context_Switch_necessary = 1;
@@ -227,7 +227,7 @@ rtems_task Task_2(
_Thread_Dispatch_disable_level = 0;
- _Thread_Heir = (rtems_tcb *) _Thread_Ready_chain[254].first;
+ _Thread_Heir = (rtems_tcb *) _Thread_Ready_chain[LOW_PRIORITY].first;
_Context_Switch_necessary = 1;