diff options
Diffstat (limited to 'testsuites/mptests/mp03')
-rw-r--r-- | testsuites/mptests/mp03/initimpl.h | 4 | ||||
-rw-r--r-- | testsuites/mptests/mp03/task1.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/testsuites/mptests/mp03/initimpl.h b/testsuites/mptests/mp03/initimpl.h index 533d32175a..ef4879d09c 100644 --- a/testsuites/mptests/mp03/initimpl.h +++ b/testsuites/mptests/mp03/initimpl.h @@ -34,7 +34,7 @@ rtems_task Init( printf( "\n\n*** TEST 3 -- NODE %" PRIu32 " ***\n", - Multiprocessing_configuration.node + rtems_object_get_local_node() ); Task_name[ 1 ] = rtems_build_name( '1', '1', '1', ' ' ); @@ -42,7 +42,7 @@ rtems_task Init( puts( "Creating Test_task (Global)" ); status = rtems_task_create( - Task_name[ Multiprocessing_configuration.node ], + Task_name[ rtems_object_get_local_node() ], 1, RTEMS_MINIMUM_STACK_SIZE, RTEMS_NO_PREEMPT, diff --git a/testsuites/mptests/mp03/task1.c b/testsuites/mptests/mp03/task1.c index 5fdda4d0f2..48682e032c 100644 --- a/testsuites/mptests/mp03/task1.c +++ b/testsuites/mptests/mp03/task1.c @@ -20,7 +20,7 @@ static void Test_Task_Support( rtems_event_set events; rtems_status_code status; - if ( Multiprocessing_configuration.node == node ) { + if ( rtems_object_get_local_node() == node ) { for ( ; ; ) { @@ -98,7 +98,7 @@ rtems_task Test_task( directive_failed( status, "rtems_task_ident" ); puts( "Getting TID of remote task" ); - remote_node = (Multiprocessing_configuration.node == 1) ? 2 : 1; + remote_node = (rtems_object_get_local_node() == 1) ? 2 : 1; printf( "Remote task's name is : " ); put_name( Task_name[ remote_node ], TRUE ); @@ -130,7 +130,7 @@ rtems_task Test_task( ); directive_failed( status, "rtems_timer_fire_after" ); - if ( Multiprocessing_configuration.node == 1 ) { + if ( rtems_object_get_local_node() == 1 ) { status = rtems_task_wake_after( 2 * rtems_clock_get_ticks_per_second() ); directive_failed( status, "rtems_task_wake_after" ); } |