diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-10-04 22:02:18 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-10-04 22:02:18 +0000 |
commit | d05ec0f77313dc15ff4f4253441d56a4ce101530 (patch) | |
tree | dcf8b20ddea9a527102741ad299e821fe79f58a0 /testsuites/sptests/sp07 | |
parent | add missing file (diff) | |
download | rtems-d05ec0f77313dc15ff4f4253441d56a4ce101530.tar.bz2 |
2009-10-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* sp07/init.c, sp07/sp07.scn, sp09/init.c, sp09/screen01.c,
sp09/sp09.scn, sp28/init.c, sp62/init.c, sp62/sp62.scn, sp64/init.c,
sp64/sp64.scn: Add more test cases highlighted on SPARC at -O2, x86
at -Os and m68k at -Os. Fix typos.
Diffstat (limited to 'testsuites/sptests/sp07')
-rw-r--r-- | testsuites/sptests/sp07/init.c | 23 | ||||
-rw-r--r-- | testsuites/sptests/sp07/sp07.scn | 3 |
2 files changed, 10 insertions, 16 deletions
diff --git a/testsuites/sptests/sp07/init.c b/testsuites/sptests/sp07/init.c index 58018ab6a2..806544119b 100644 --- a/testsuites/sptests/sp07/init.c +++ b/testsuites/sptests/sp07/init.c @@ -1,16 +1,4 @@ -/* Init - * - * This routine is the initialization task for this test program. - * It is a user initialization task and has the responsibility for creating - * and starting the tasks that make up the test. If the time of day - * clock is required for the test, it should also be set to a known - * value by this function. - * - * Input parameters: - * argument - task argument - * - * Output parameters: NONE - * +/* * COPYRIGHT (c) 1989-2009. * On-Line Applications Research Corporation (OAR). * @@ -171,9 +159,14 @@ rtems_task Init( buffered_io_flush(); + status = rtems_task_set_note( rtems_task_self(), RTEMS_NOTEPAD_4, 32 ); + directive_failed( status, "task_set_node of Self id" ); + printf( "INIT - rtems_task_set_note - set my (id) RTEMS_NOTEPAD_4 " ); + puts ( "to TA1's priority: 04" ); + status = rtems_task_set_note( RTEMS_SELF, RTEMS_NOTEPAD_4, 32 ); - directive_failed( status, "task_set_node of Self" ); - printf( "INIT - rtems_task_set_note - set my RTEMS_NOTEPAD_4 " ); + directive_failed( status, "task_set_node of Self 0" ); + printf( "INIT - rtems_task_set_note - set my (SELF) RTEMS_NOTEPAD_4 " ); puts ( "to TA1's priority: 04" ); status = rtems_task_set_note( Task_id[ 1 ], RTEMS_NOTEPAD_8, 4 ); diff --git a/testsuites/sptests/sp07/sp07.scn b/testsuites/sptests/sp07/sp07.scn index 2bbf8a7f0a..e75bdd0095 100644 --- a/testsuites/sptests/sp07/sp07.scn +++ b/testsuites/sptests/sp07/sp07.scn @@ -18,7 +18,8 @@ TASK_START - TA2 - started TASK_START - TA3 - started TASK_START - TA4 - started TASK_RESTART - TA3 - restarted -INIT - rtems_task_set_note - set my RTEMS_NOTEPAD_4 to TA1's priority: 04 +INIT - rtems_task_set_note - set my (id) RTEMS_NOTEPAD_4 to TA1's priority: 04 +INIT - rtems_task_set_note - set my (SELF) RTEMS_NOTEPAD_4 to TA1's priority: 04 INIT - rtems_task_set_note - set TA1's RTEMS_NOTEPAD_8 to TA1's priority: 04 INIT - rtems_task_set_note - set TA2's RTEMS_NOTEPAD_8 to TA2's priority: 04 <pause> |