Changeset a00dff42 in rtems


Ignore:
Timestamp:
Dec 12, 2019, 5:37:01 AM (4 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.

Files:
40 edited

Legend:

Unmodified
Added
Removed
  • bsps/include/shm_driver.h

    rd24b301 ra00dff42  
    240240
    241241#define Shm_Is_master_node()  \
    242   ( SHM_MASTER ==_Configuration_MP_table-> node )
     242  ( SHM_MASTER == rtems_object_get_local_node() )
    243243
    244244#define Shm_Free_envelope( ecb ) \
  • bsps/shared/shmdr/shmdr-dump.c

    rd24b301 ra00dff42  
    4242
    4343  printk( "\n\nSHMDR STATISTICS (NODE %" PRId32 ")\n",
    44     Multiprocessing_configuration.node );
     44    rtems_object_get_local_node() );
    4545  printk( "TICKS SINCE BOOT = %" PRId32 "\n", ticks );
    4646  printk( "TICKS PER SECOND = %" PRId32 "\n", ticks_per_second );
  • bsps/shared/shmdr/shmdr-init.c

    rd24b301 ra00dff42  
    4747  uint32_t                 local_node;
    4848
    49   local_node = _Configuration_MP_table->node;
     49  local_node = rtems_object_get_local_node();
    5050
    5151  Shm_Get_configuration( local_node, &Shm_Configuration );
  • bsps/shared/shmdr/shmdr-send.c

    rd24b301 ra00dff42  
    4747  else {
    4848    for( nnum = SHM_FIRST_NODE ; nnum <= SHM_MAXIMUM_NODES ; nnum++ )
    49       if ( _Configuration_MP_table->node != nnum ) {
     49      if ( rtems_object_get_local_node() != nnum ) {
    5050        struct pkt_cpy *pkt;
    5151
  • cpukit/include/rtems/rtems/object.h

    rd24b301 ra00dff42  
    358358);
    359359
     360/**
     361 * @brief Get the local MPCI node number.
     362 *
     363 * @return The local MPCI node number.
     364 */
     365RTEMS_INLINE_ROUTINE uint16_t rtems_object_get_local_node( void )
     366{
     367  return _Objects_Local_node;
     368}
     369
    360370#ifdef __cplusplus
    361371}
  • cpukit/include/rtems/score/object.h

    rd24b301 ra00dff42  
    339339  ((Objects_Maximum) ((maximum) & ~OBJECTS_UNLIMITED_OBJECTS))
    340340
     341/**
     342 * @brief The local MPCI node number.
     343 */
     344#if defined(RTEMS_MULTIPROCESSING)
     345extern uint16_t _Objects_Local_node;
     346#else
     347#define _Objects_Local_node ((uint16_t) 1)
     348#endif
     349
    341350/** @} */
    342351/** @} */
  • cpukit/include/rtems/score/objectimpl.h

    rd24b301 ra00dff42  
    6363  OBJECTS_FAKE_OBJECTS_SCHEDULERS = 1
    6464} Objects_Fake_objects_API;
    65 
    66 /**
    67  *  The following is referenced to the node number of the local node.
    68  */
    69 #if defined(RTEMS_MULTIPROCESSING)
    70 extern uint16_t _Objects_Local_node;
    71 #else
    72 #define _Objects_Local_node ((uint16_t)1)
    73 #endif
    7465
    7566/**
  • cpukit/libcsupport/src/error.c

    rd24b301 ra00dff42  
    5252  #if defined(RTEMS_MULTIPROCESSING)
    5353    if (_System_state_Is_multiprocessing)
    54       fprintf(stderr, "[%" PRIu32 "] ", _Configuration_MP_table->node);
     54      fprintf(stderr, "[%" PRIu16 "] ", rtems_object_get_local_node());
    5555  #endif
    5656
  • cpukit/libcsupport/src/getpgrp.c

    rd24b301 ra00dff42  
    44
    55#include <unistd.h>
    6 #include <rtems/score/objectimpl.h>
     6#include <rtems.h>
    77
    88/*
     
    1717   */
    1818
    19   return _Objects_Local_node;
     19  return rtems_object_get_local_node();
    2020}
  • cpukit/libcsupport/src/getpid.c

    rd24b301 ra00dff42  
    1212#include <unistd.h>
    1313
    14 #include <rtems/score/objectimpl.h>
     14#include <rtems.h>
    1515#include <rtems/seterr.h>
    1616
     
    2020pid_t getpid( void )
    2121{
    22   return _Objects_Local_node;
     22  return rtems_object_get_local_node();
    2323}
    2424
  • cpukit/libcsupport/src/utsname.c

    rd24b301 ra00dff42  
    2424#include <inttypes.h>
    2525
    26 #include <rtems/score/objectimpl.h>
     26#include <rtems.h>
    2727#include <rtems/seterr.h>
    2828
     
    4848  strncpy( name->sysname, "RTEMS", sizeof(name->sysname) );
    4949
    50   snprintf( name->nodename, sizeof(name->nodename), "Node %" PRId16, _Objects_Local_node );
     50  snprintf(
     51    name->nodename,
     52    sizeof(name->nodename),
     53    "Node %" PRId16, rtems_object_get_local_node()
     54  );
    5155
    5256  strncpy( name->release, RTEMS_VERSION, sizeof(name->release) );
  • testsuites/ada/support/initimpl.h

    rd24b301 ra00dff42  
    103103uint32_t get_node(void)
    104104{
    105   /* XXX HACK -- use public API */
    106   return _Objects_Local_node;
     105  return rtems_object_get_local_node();
    107106}
    108107
  • testsuites/mptests/mp01/initimpl.h

    rd24b301 ra00dff42  
    3737  printf(
    3838    "\n\n*** TEST 1 -- NODE %" PRIu32 " ***\n",
    39     Multiprocessing_configuration.node
     39    rtems_object_get_local_node()
    4040  );
    4141
    42   if ( Multiprocessing_configuration.node != 1 ) c = 'S';
     42  if ( rtems_object_get_local_node() != 1 ) c = 'S';
    4343  else                                           c = 'M';
    4444
  • testsuites/mptests/mp03/initimpl.h

    rd24b301 ra00dff42  
    3535  printf(
    3636    "\n\n*** TEST 3 -- NODE %" PRIu32 " ***\n",
    37     Multiprocessing_configuration.node
     37    rtems_object_get_local_node()
    3838  );
    3939
     
    4343  puts( "Creating Test_task (Global)" );
    4444  status = rtems_task_create(
    45     Task_name[ Multiprocessing_configuration.node ],
     45    Task_name[ rtems_object_get_local_node() ],
    4646    1,
    4747    RTEMS_MINIMUM_STACK_SIZE,
  • testsuites/mptests/mp03/task1.c

    rd24b301 ra00dff42  
    2121  rtems_status_code status;
    2222
    23   if ( Multiprocessing_configuration.node == node ) {
     23  if ( rtems_object_get_local_node() == node ) {
    2424
    2525    for ( ; ; ) {
     
    9999
    100100  puts( "Getting TID of remote task" );
    101   remote_node = (Multiprocessing_configuration.node == 1) ? 2 : 1;
     101  remote_node = (rtems_object_get_local_node() == 1) ? 2 : 1;
    102102  printf( "Remote task's name is : " );
    103103  put_name( Task_name[ remote_node ], TRUE );
     
    131131  directive_failed( status, "rtems_timer_fire_after" );
    132132
    133   if ( Multiprocessing_configuration.node == 1 ) {
     133  if ( rtems_object_get_local_node() == 1 ) {
    134134    status = rtems_task_wake_after( 2 * rtems_clock_get_ticks_per_second() );
    135135    directive_failed( status, "rtems_task_wake_after" );
  • testsuites/mptests/mp04/initimpl.h

    rd24b301 ra00dff42  
    3535  printf(
    3636    "\n\n*** TEST 4 -- NODE %" PRId32 " ***\n",
    37     Multiprocessing_configuration.node
     37    rtems_object_get_local_node()
    3838  );
    3939
     
    4343  puts( "Creating Test_task (Global)" );
    4444  status = rtems_task_create(
    45     Task_name[ Multiprocessing_configuration.node ],
    46     Multiprocessing_configuration.node,
     45    Task_name[ rtems_object_get_local_node() ],
     46    rtems_object_get_local_node(),
    4747    RTEMS_MINIMUM_STACK_SIZE,
    4848    RTEMS_DEFAULT_MODES,
  • testsuites/mptests/mp04/task1.c

    rd24b301 ra00dff42  
    2323#include "tmacros.h"
    2424
    25 extern rtems_multiprocessing_table Multiprocessing_configuration;
    26 
    2725rtems_task Test_task(
    2826  rtems_task_argument argument
     
    4038
    4139  puts( "Getting TID of remote task" );
    42   remote_node = (Multiprocessing_configuration.node == 1) ? 2 : 1;
     40  remote_node = (rtems_object_get_local_node() == 1) ? 2 : 1;
    4341  puts_nocr( "Remote task's name is : " );
    4442  put_name( Task_name[ remote_node ], TRUE );
     
    5654  status = rtems_task_set_priority(
    5755    remote_tid,
    58     Multiprocessing_configuration.node,
     56    rtems_object_get_local_node(),
    5957    &previous_priority
    6058  );
  • testsuites/mptests/mp05/initimpl.h

    rd24b301 ra00dff42  
    3535  printf(
    3636    "\n\n*** TEST 5 -- NODE %" PRIu32 " ***\n",
    37     Multiprocessing_configuration.node
     37    rtems_object_get_local_node()
    3838  );
    3939
     
    4343  puts( "Creating Test_task (Global)" );
    4444  status = rtems_task_create(
    45     Task_name[Multiprocessing_configuration.node],
     45    Task_name[rtems_object_get_local_node()],
    4646    1,
    4747    RTEMS_MINIMUM_STACK_SIZE * 2,
  • testsuites/mptests/mp05/task1.c

    rd24b301 ra00dff42  
    5151  directive_failed( status, "rtems_signal_catch" );
    5252
    53   if (Multiprocessing_configuration.node == 1) {
     53  if (rtems_object_get_local_node() == 1) {
    5454     remote_node = 2;
    5555     remote_signal  = RTEMS_SIGNAL_18;
     
    8282  directive_failed( status, "rtems_timer_fire_after" );
    8383
    84   if ( Multiprocessing_configuration.node == 1 ) {
     84  if ( rtems_object_get_local_node() == 1 ) {
    8585    puts( "Sending signal to remote task" );
    8686    do {
  • testsuites/mptests/mp06/initimpl.h

    rd24b301 ra00dff42  
    3535  printf(
    3636    "\n\n*** TEST 6 -- NODE %" PRId32 " ***\n",
    37     Multiprocessing_configuration.node
     37    rtems_object_get_local_node()
    3838  );
    3939
     
    4343  puts( "Creating Test_task (Global)" );
    4444  status = rtems_task_create(
    45     Task_name[Multiprocessing_configuration.node],
     45    Task_name[rtems_object_get_local_node()],
    4646    1,
    4747    RTEMS_MINIMUM_STACK_SIZE,
  • testsuites/mptests/mp06/task1.c

    rd24b301 ra00dff42  
    8181  Stop_Test = false;
    8282
    83   remote_node = (Multiprocessing_configuration.node == 1) ? 2 : 1;
     83  remote_node = (rtems_object_get_local_node() == 1) ? 2 : 1;
    8484  puts_nocr( "Remote task's name is : " );
    8585  put_name( Task_name[ remote_node ], TRUE );
     
    9595  directive_failed( status, "rtems_task_ident FAILED!!" );
    9696
    97   if ( Multiprocessing_configuration.node == 1 )
     97  if ( rtems_object_get_local_node() == 1 )
    9898    puts( "Sending events to remote task" );
    9999  else
     
    116116    event_for_this_iteration = Event_set_table[ count % 32 ];
    117117
    118     if ( Multiprocessing_configuration.node == 1 ) {
     118    if ( rtems_object_get_local_node() == 1 ) {
    119119      status = rtems_event_send( remote_tid, event_for_this_iteration );
    120120      directive_failed( status, "rtems_event_send" );
     
    130130      );
    131131      if ( rtems_are_statuses_equal( status, RTEMS_TIMEOUT ) ) {
    132         if ( Multiprocessing_configuration.node == 2 )
     132        if ( rtems_object_get_local_node() == 2 )
    133133          puts( "\nCorrect behavior if the other node exitted." );
    134134        else
     
    147147  putchar( '\n' );
    148148
    149   if ( Multiprocessing_configuration.node == 2 ) {
     149  if ( rtems_object_get_local_node() == 2 ) {
    150150    /* Flush events */
    151151    puts( "Flushing RTEMS_EVENT_16" );
  • testsuites/mptests/mp07/initimpl.h

    rd24b301 ra00dff42  
    3535  printf(
    3636   "\n\n*** TEST 7 -- NODE %" PRId32 " ***\n",
    37    Multiprocessing_configuration.node
     37   rtems_object_get_local_node()
    3838  );
    3939
     
    4343  puts( "Creating Test_task (Global)" );
    4444  status = rtems_task_create(
    45     Task_name[Multiprocessing_configuration.node],
     45    Task_name[rtems_object_get_local_node()],
    4646    1,
    4747    RTEMS_MINIMUM_STACK_SIZE,
  • testsuites/mptests/mp07/task1.c

    rd24b301 ra00dff42  
    4646  Stop_Test = false;
    4747
    48   remote_node = (Multiprocessing_configuration.node == 1) ? 2 : 1;
     48  remote_node = (rtems_object_get_local_node() == 1) ? 2 : 1;
    4949  puts_nocr( "Remote task's name is : " );
    5050  put_name( Task_name[ remote_node ], TRUE );
     
    5959  } while ( !rtems_is_status_successful( status ) );
    6060
    61   if ( Multiprocessing_configuration.node == 1 ) {
     61  if ( rtems_object_get_local_node() == 1 ) {
    6262    puts( "Sending first event to remote task" );
    6363    status = rtems_event_send( remote_tid, RTEMS_EVENT_16 );
  • 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" );
  • testsuites/mptests/mp09/initimpl.h

    rd24b301 ra00dff42  
    3535  printf(
    3636    "\n\n*** TEST 9 -- NODE %" PRId32 " ***\n",
    37     Multiprocessing_configuration.node
     37    rtems_object_get_local_node()
    3838  );
    3939
     
    4343  Queue_name[ 1 ] = rtems_build_name( 'M', 'S', 'G', ' ' );
    4444
    45   if ( Multiprocessing_configuration.node == 1 ) {
     45  if ( rtems_object_get_local_node() == 1 ) {
    4646    puts( "Creating Message Queue (Global)" );
    4747    status = rtems_message_queue_create(
     
    5757  puts( "Creating Test_task (local)" );
    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/mp09/task1.c

    rd24b301 ra00dff42  
    5050  } while ( !rtems_is_status_successful( status ) );
    5151
    52   if ( Multiprocessing_configuration.node == 2 ) {
     52  if ( rtems_object_get_local_node() == 2 ) {
    5353    status = rtems_message_queue_delete( Queue_id[ 1 ] );
    5454    fatal_directive_status(
  • testsuites/mptests/mp10/initimpl.h

    rd24b301 ra00dff42  
    4141  printf(
    4242   "\n\n*** TEST 10 -- NODE %" PRIu32 " ***\n",
    43    Multiprocessing_configuration.node
     43   rtems_object_get_local_node()
    4444  );
    4545
     
    5252  Semaphore_name[ 1 ] = rtems_build_name( 'S', 'E', 'M', ' ' );
    5353
    54   if ( Multiprocessing_configuration.node == 1 ) {
     54  if ( rtems_object_get_local_node() == 1 ) {
    5555    puts( "Creating Message Queue (Global)" );
    5656    status = rtems_message_queue_create(
  • testsuites/mptests/mp11/initimpl.h

    rd24b301 ra00dff42  
    4141  printf(
    4242    "\n\n*** TEST 11 -- NODE %" PRIu32 " ***\n",
    43     Multiprocessing_configuration.node
     43    rtems_object_get_local_node()
    4444  );
    4545
     
    5151  Semaphore_name[ 1 ] = rtems_build_name( 'S', 'E', 'M', ' ' );
    5252
    53   if ( Multiprocessing_configuration.node == 1 ) {
     53  if ( rtems_object_get_local_node() == 1 ) {
    5454    puts( "Attempting to create Test_task (Global)" );
    5555    status = rtems_task_create(
  • testsuites/mptests/mp12/initimpl.h

    rd24b301 ra00dff42  
    4343  printf(
    4444    "\n\n*** TEST 12 -- NODE %" PRId32 " ***\n",
    45     Multiprocessing_configuration.node
     45    rtems_object_get_local_node()
    4646   );
    4747
     
    5353  puts( "Got to initialization task" );
    5454
    55   if ( Multiprocessing_configuration.node == 2 )  {
     55  if ( rtems_object_get_local_node() == 2 )  {
    5656    status = rtems_task_wake_after( rtems_clock_get_ticks_per_second() );
    5757    directive_failed( status, "rtems_task_wake_after" );
  • testsuites/mptests/mp13/initimpl.h

    rd24b301 ra00dff42  
    3535  printf(
    3636    "\n\n*** TEST 13 -- NODE %" PRId32 " ***\n",
    37     Multiprocessing_configuration.node
     37    rtems_object_get_local_node()
    3838  );
    3939
     
    4545  Semaphore_name[ 1 ] = rtems_build_name( 'S', 'E', 'M', ' ' );
    4646
    47   if ( Multiprocessing_configuration.node == 1 ) {
     47  if ( rtems_object_get_local_node() == 1 ) {
    4848    puts( "Creating Message Queue (Global)" );
    4949    status = rtems_message_queue_create(
     
    104104  directive_failed( status, "rtems_task_start" );
    105105
    106   if ( Multiprocessing_configuration.node == 1 ) {
     106  if ( rtems_object_get_local_node() == 1 ) {
    107107    status = rtems_task_wake_after( 5 * rtems_clock_get_ticks_per_second() );
    108108    directive_failed( status, "rtems_task_wake_after" );
  • testsuites/mptests/mp13/task1.c

    rd24b301 ra00dff42  
    4242  } while ( !rtems_is_status_successful( status ) );
    4343
    44   if ( Multiprocessing_configuration.node == 1 ) {
     44  if ( rtems_object_get_local_node() == 1 ) {
    4545    puts( "Receiving message ..." );
    4646    status = rtems_message_queue_receive(
  • testsuites/mptests/mp13/task2.c

    rd24b301 ra00dff42  
    4141  directive_failed( status, "rtems_semaphore_ident" );
    4242
    43   if ( Multiprocessing_configuration.node == 1 ) {
     43  if ( rtems_object_get_local_node() == 1 ) {
    4444    status = rtems_task_wake_after( rtems_clock_get_ticks_per_second() );
    4545    directive_failed( status, "rtems_task_wake_after" );
  • testsuites/mptests/mp14/evtask1.c

    rd24b301 ra00dff42  
    2424#include "system.h"
    2525
    26 extern rtems_multiprocessing_table Multiprocessing_configuration;
    27 
    2826rtems_task Test_task(
    2927  rtems_task_argument argument
     
    3634  rtems_event_set   event_out;
    3735
    38   remote_node = ((Multiprocessing_configuration.node == 1) ? 2 : 1);
     36  remote_node = ((rtems_object_get_local_node() == 1) ? 2 : 1);
    3937
    4038  puts( "About to go to sleep!" );
     
    6058  }
    6159
    62   if ( Multiprocessing_configuration.node == 1 ) {
     60  if ( rtems_object_get_local_node() == 1 ) {
    6361    puts( "Sending events to remote task" );
    6462    while ( Stop_Test == false ) {
  • testsuites/mptests/mp14/initimpl.h

    rd24b301 ra00dff42  
    5252  printf(
    5353    "\n\n*** TEST 14 -- NODE %" PRId32 " ***\n",
    54     Multiprocessing_configuration.node
     54    rtems_object_get_local_node()
    5555  );
    5656
     
    9191  Timer_name[ 1 ] = rtems_build_name( 'T', 'M', 'R', ' ' );
    9292
    93   if ( Multiprocessing_configuration.node == 1 ) {
     93  if ( rtems_object_get_local_node() == 1 ) {
    9494    puts( "Creating Semaphore (Global)" );
    9595    status = rtems_semaphore_create(
     
    126126  puts( "Creating Event task (Global)" );
    127127  status = rtems_task_create(
    128     Task_name[ Multiprocessing_configuration.node ],
     128    Task_name[ rtems_object_get_local_node() ],
    129129    2,
    130130    RTEMS_MINIMUM_STACK_SIZE,
     
    141141  puts( "Creating Semaphore task (Global)" );
    142142  status = rtems_task_create(
    143     Semaphore_task_name[ Multiprocessing_configuration.node ],
     143    Semaphore_task_name[ rtems_object_get_local_node() ],
    144144    2,
    145145    RTEMS_MINIMUM_STACK_SIZE,
     
    156156  puts( "Creating Message Queue task (Global)" );
    157157  status = rtems_task_create(
    158     Queue_task_name[ Multiprocessing_configuration.node ],
     158    Queue_task_name[ rtems_object_get_local_node() ],
    159159    2,
    160160    RTEMS_MINIMUM_STACK_SIZE,
     
    172172  puts( "Creating Partition task (Global)" );
    173173  status = rtems_task_create(
    174     Partition_task_name[ Multiprocessing_configuration.node ],
     174    Partition_task_name[ rtems_object_get_local_node() ],
    175175    2,
    176176    RTEMS_MINIMUM_STACK_SIZE * 2,
  • testsuites/mptests/mp14/msgtask1.c

    rd24b301 ra00dff42  
    5454  }
    5555
    56   if ( Multiprocessing_configuration.node == 1 ) {
     56  if ( rtems_object_get_local_node() == 1 ) {
    5757      status = rtems_message_queue_send(
    5858        Queue_id[ 1 ],
     
    9595
    9696      if (Stop_Test == false)
    97         if ( Multiprocessing_configuration.node == 1 && --yield_count == 0 ) {
     97        if ( rtems_object_get_local_node() == 1 && --yield_count == 0 ) {
    9898          status = rtems_task_wake_after( RTEMS_YIELD_PROCESSOR );
    9999          directive_failed( status, "rtems_task_wake_after" );
  • testsuites/mptests/mp14/pttask1.c

    rd24b301 ra00dff42  
    2222
    2323#include "system.h"
    24 
    25 extern rtems_multiprocessing_table Multiprocessing_configuration;
    2624
    2725rtems_task Partition_task(
     
    6058
    6159      if (Stop_Test == false)
    62         if ( Multiprocessing_configuration.node == 1 && --yield_count == 0 ) {
     60        if ( rtems_object_get_local_node() == 1 && --yield_count == 0 ) {
    6361          status = rtems_task_wake_after( 1 );
    6462          directive_failed( status, "rtems_task_wake_after" );
  • testsuites/mptests/mp14/smtask1.c

    rd24b301 ra00dff42  
    2121
    2222#include "system.h"
    23 
    24 extern rtems_multiprocessing_table Multiprocessing_configuration;
    2523
    2624rtems_task Semaphore_task(
     
    6159
    6260      if ( Stop_Test == false )
    63         if ( Multiprocessing_configuration.node == 1 && --yield_count == 0 ) {
     61        if ( rtems_object_get_local_node() == 1 && --yield_count == 0 ) {
    6462          status = rtems_task_wake_after( RTEMS_YIELD_PROCESSOR );
    6563          directive_failed( status, "rtems_task_wake_after" );
  • testsuites/mptests/mp14/system.h

    rd24b301 ra00dff42  
    105105TEST_EXTERN uint32_t   Msg_buffer[ 4 ][ 4 ];
    106106
    107 extern rtems_multiprocessing_table Multiprocessing_configuration;
    108 
    109107TEST_EXTERN volatile bool Stop_Test;
    110108TEST_EXTERN rtems_id timer_id;
  • testsuites/samples/base_mp/initimpl.h

    rd24b301 ra00dff42  
    4141    tid,
    4242    Application_task,
    43     Multiprocessing_configuration.node
     43    rtems_object_get_local_node()
    4444  );
    4545  rtems_test_assert(status == RTEMS_SUCCESSFUL);
Note: See TracChangeset for help on using the changeset viewer.