summaryrefslogtreecommitdiffstats
path: root/testsuites/mptests/mp04
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2019-12-12 06:37:01 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2019-12-13 08:22:58 +0100
commita00dff42cfdf201abe15829baeeb2b6341a0426b (patch)
treec155002e1d0b91337e2c60a237c114a998aa605f /testsuites/mptests/mp04
parentconfig: CONFIGURE_HAS_OWN_MULTIPROCESSING_TABLE (diff)
downloadrtems-a00dff42cfdf201abe15829baeeb2b6341a0426b.tar.bz2
rtems: Add and use rtems_object_get_local_node()
Update #3841.
Diffstat (limited to 'testsuites/mptests/mp04')
-rw-r--r--testsuites/mptests/mp04/initimpl.h6
-rw-r--r--testsuites/mptests/mp04/task1.c6
2 files changed, 5 insertions, 7 deletions
diff --git a/testsuites/mptests/mp04/initimpl.h b/testsuites/mptests/mp04/initimpl.h
index 3e3d8cd32f..4598944e00 100644
--- a/testsuites/mptests/mp04/initimpl.h
+++ b/testsuites/mptests/mp04/initimpl.h
@@ -34,7 +34,7 @@ rtems_task Init(
printf(
"\n\n*** TEST 4 -- NODE %" PRId32 " ***\n",
- Multiprocessing_configuration.node
+ rtems_object_get_local_node()
);
Task_name[ 1 ] = rtems_build_name( '1', '1', '1', ' ' );
@@ -42,8 +42,8 @@ rtems_task Init(
puts( "Creating Test_task (Global)" );
status = rtems_task_create(
- Task_name[ Multiprocessing_configuration.node ],
- Multiprocessing_configuration.node,
+ Task_name[ rtems_object_get_local_node() ],
+ rtems_object_get_local_node(),
RTEMS_MINIMUM_STACK_SIZE,
RTEMS_DEFAULT_MODES,
RTEMS_GLOBAL,
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" );