forked from Imagelibrary/rtems
2009-08-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* mp01/task1.c, mp01/node1/mp01-node1.scn, mp01/node2/mp01-node2.scn: Convert calls to legacy routine rtems_clock_get( RTEMS_CLOCK_GET_TOD, ..) to rtems_clock_get_tod(..).
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2009-08-10 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||||
|
|
||||||
|
* mp01/task1.c, mp01/node1/mp01-node1.scn, mp01/node2/mp01-node2.scn:
|
||||||
|
Convert calls to legacy routine rtems_clock_get( RTEMS_CLOCK_GET_TOD,
|
||||||
|
..) to rtems_clock_get_tod(..).
|
||||||
|
|
||||||
2009-04-03 Ralf Corsépius <ralf.corsepius@rtems.org>
|
2009-04-03 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
* mp01/node1/Makefile.am, mp01/node2/Makefile.am,
|
* mp01/node1/Makefile.am, mp01/node2/Makefile.am,
|
||||||
|
|||||||
@@ -2,14 +2,14 @@
|
|||||||
Creating task 1 (Global)
|
Creating task 1 (Global)
|
||||||
Creating task 2 (Global)
|
Creating task 2 (Global)
|
||||||
Creating task 3 (Local)
|
Creating task 3 (Local)
|
||||||
MA1 - rtems_clock_get - 09:00:00 12/31/1988
|
MA1 - rtems_clock_get_tod - 09:00:00 12/31/1988
|
||||||
MA2 - rtems_clock_get - 09:00:00 12/31/1988
|
MA2 - rtems_clock_get_tod - 09:00:00 12/31/1988
|
||||||
MA3 - rtems_clock_get - 09:00:00 12/31/1988
|
MA3 - rtems_clock_get_tod - 09:00:00 12/31/1988
|
||||||
MA1 - rtems_clock_get - 09:00:05 12/31/1988
|
MA1 - rtems_clock_get_tod - 09:00:05 12/31/1988
|
||||||
MA1 - deleting self
|
MA1 - deleting self
|
||||||
MA2 - rtems_clock_get - 09:00:10 12/31/1988
|
MA2 - rtems_clock_get_tod - 09:00:10 12/31/1988
|
||||||
MA2 - waiting to be deleted by MA3
|
MA2 - waiting to be deleted by MA3
|
||||||
MA3 - rtems_clock_get - 09:00:15 12/31/1988
|
MA3 - rtems_clock_get_tod - 09:00:15 12/31/1988
|
||||||
MA3 - getting TID of MA2
|
MA3 - getting TID of MA2
|
||||||
MA3 - deleting MA2
|
MA3 - deleting MA2
|
||||||
*** END OF TEST 1 ***
|
*** END OF TEST 1 ***
|
||||||
|
|||||||
@@ -2,14 +2,14 @@
|
|||||||
Creating task 1 (Global)
|
Creating task 1 (Global)
|
||||||
Creating task 2 (Global)
|
Creating task 2 (Global)
|
||||||
Creating task 3 (Local)
|
Creating task 3 (Local)
|
||||||
SA1 - rtems_clock_get - 09:00:00 12/31/1988
|
SA1 - rtems_clock_get_tod - 09:00:00 12/31/1988
|
||||||
SA2 - rtems_clock_get - 09:00:00 12/31/1988
|
SA2 - rtems_clock_get_tod - 09:00:00 12/31/1988
|
||||||
SA3 - rtems_clock_get - 09:00:00 12/31/1988
|
SA3 - rtems_clock_get_tod - 09:00:00 12/31/1988
|
||||||
SA1 - rtems_clock_get - 09:00:05 12/31/1988
|
SA1 - rtems_clock_get_tod - 09:00:05 12/31/1988
|
||||||
SA1 - deleting self
|
SA1 - deleting self
|
||||||
SA2 - rtems_clock_get - 09:00:10 12/31/1988
|
SA2 - rtems_clock_get_tod - 09:00:10 12/31/1988
|
||||||
SA2 - waiting to be deleted by SA3
|
SA2 - waiting to be deleted by SA3
|
||||||
SA3 - rtems_clock_get - 09:00:15 12/31/1988
|
SA3 - rtems_clock_get_tod - 09:00:15 12/31/1988
|
||||||
SA3 - getting TID of SA2
|
SA3 - getting TID of SA2
|
||||||
SA3 - deleting SA2
|
SA3 - deleting SA2
|
||||||
*** END OF TEST 1 ***
|
*** END OF TEST 1 ***
|
||||||
|
|||||||
@@ -36,19 +36,19 @@ rtems_task Test_task(
|
|||||||
status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &tid );
|
status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &tid );
|
||||||
directive_failed( status, "rtems_task_ident" );
|
directive_failed( status, "rtems_task_ident" );
|
||||||
|
|
||||||
status = rtems_clock_get( RTEMS_CLOCK_GET_TOD, &time );
|
status = rtems_clock_get_tod( &time );
|
||||||
directive_failed( status, "rtems_clock_get" );
|
directive_failed( status, "rtems_clock_get_tod" );
|
||||||
|
|
||||||
put_name( Task_name[ task_number( tid ) ], FALSE );
|
put_name( Task_name[ task_number( tid ) ], FALSE );
|
||||||
print_time( " - rtems_clock_get - ", &time, "\n" );
|
print_time( " - rtems_clock_get_tod - ", &time, "\n" );
|
||||||
|
|
||||||
status = rtems_task_wake_after( task_number( tid ) * 1 * TICKS_PER_SECOND );
|
status = rtems_task_wake_after( task_number( tid ) * 1 * TICKS_PER_SECOND );
|
||||||
directive_failed( status, "rtems_task_wake_after" );
|
directive_failed( status, "rtems_task_wake_after" );
|
||||||
|
|
||||||
status = rtems_clock_get( RTEMS_CLOCK_GET_TOD, &time );
|
status = rtems_clock_get_tod( &time );
|
||||||
directive_failed( status, "rtems_clock_get" );
|
directive_failed( status, "rtems_clock_get_tod" );
|
||||||
put_name( Task_name[ task_number( tid ) ], FALSE );
|
put_name( Task_name[ task_number( tid ) ], FALSE );
|
||||||
print_time( " - rtems_clock_get - ", &time, "\n" );
|
print_time( " - rtems_clock_get_tod - ", &time, "\n" );
|
||||||
|
|
||||||
if ( task_number(tid) == 1 ) { /* TASK 1 */
|
if ( task_number(tid) == 1 ) { /* TASK 1 */
|
||||||
put_name( Task_name[ 1 ], FALSE );
|
put_name( Task_name[ 1 ], FALSE );
|
||||||
|
|||||||
Reference in New Issue
Block a user