Changeset a00dff42 in rtems for testsuites/mptests/mp08


Ignore:
Timestamp:
Dec 12, 2019, 5:37:01 AM (6 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
24f8915
Parents:
d24b301
git-author:
Sebastian Huber <sebastian.huber@…> (12/12/19 05:37:01)
git-committer:
Sebastian Huber <sebastian.huber@…> (12/13/19 07:22:58)
Message:

rtems: Add and use rtems_object_get_local_node()

Update #3841.

Location:
testsuites/mptests/mp08
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/mptests/mp08/initimpl.h

    rd24b301 ra00dff42  
    3535  printf(
    3636    "\n\n*** TEST 8 -- NODE %" PRIu32 " ***\n",
    37     Multiprocessing_configuration.node
     37    rtems_object_get_local_node()
    3838  );
    3939
     
    4343  Semaphore_name[ 1 ] = rtems_build_name( 'S', 'E', 'M', '\0' );
    4444
    45   if ( Multiprocessing_configuration.node == 1 ) {
     45  if ( rtems_object_get_local_node() == 1 ) {
    4646    puts( "Creating Sempahore (Global)" );
    4747    status = rtems_semaphore_create(
     
    5757  puts( "Creating Test_task (Global)" );
    5858  status = rtems_task_create(
    59     Task_name[ Multiprocessing_configuration.node ],
     59    Task_name[ rtems_object_get_local_node() ],
    6060    1,
    6161    RTEMS_MINIMUM_STACK_SIZE,
  • testsuites/mptests/mp08/task1.c

    rd24b301 ra00dff42  
    4040  } while ( !rtems_is_status_successful( status ) );
    4141
    42   if ( Multiprocessing_configuration.node == 2 ) {
     42  if ( rtems_object_get_local_node() == 2 ) {
    4343    status = rtems_semaphore_delete( Semaphore_id[ 1 ] );
    4444    fatal_directive_status(
     
    7171    }
    7272
    73     if ( Multiprocessing_configuration.node == 1 && ++count == 1000 ) {
     73    if ( rtems_object_get_local_node() == 1 && ++count == 1000 ) {
    7474      status = rtems_task_wake_after( rtems_clock_get_ticks_per_second() );
    7575      directive_failed( status, "rtems_task_wake_after" );
Note: See TracChangeset for help on using the changeset viewer.