From a00dff42cfdf201abe15829baeeb2b6341a0426b Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 12 Dec 2019 06:37:01 +0100 Subject: rtems: Add and use rtems_object_get_local_node() Update #3841. --- testsuites/mptests/mp04/task1.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'testsuites/mptests/mp04/task1.c') diff --git a/testsuites/mptests/mp04/task1.c b/testsuites/mptests/mp04/task1.c index 242b98c6f9..878effd237 100644 --- a/testsuites/mptests/mp04/task1.c +++ b/testsuites/mptests/mp04/task1.c @@ -22,8 +22,6 @@ #include "system.h" #include "tmacros.h" -extern rtems_multiprocessing_table Multiprocessing_configuration; - rtems_task Test_task( rtems_task_argument argument ) @@ -39,7 +37,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; puts_nocr( "Remote task's name is : " ); put_name( Task_name[ remote_node ], TRUE ); @@ -55,7 +53,7 @@ rtems_task Test_task( status = rtems_task_set_priority( remote_tid, - Multiprocessing_configuration.node, + rtems_object_get_local_node(), &previous_priority ); directive_failed( status, "rtems_task_set_priority" ); -- cgit v1.2.3