Changeset 9b6362da in rtems


Ignore:
Timestamp:
Nov 18, 2021, 11:13:53 AM (2 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
18484f02
Parents:
99fdfcd
git-author:
Sebastian Huber <sebastian.huber@…> (11/18/21 11:13:53)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/18/21 18:59:14)
Message:

rtems: Use RTEMS_WHO_AM_I for rtems_task_ident()

Files:
24 edited

Legend:

Unmodified
Added
Removed
  • cpukit/include/rtems/rtems/tasks.h

    r99fdfcd r9b6362da  
    12681268 * specified in ``name``.
    12691269 *
    1270  * A task may obtain its own identifier by specifying #RTEMS_SELF for the name.
     1270 * A task may obtain its own identifier by specifying #RTEMS_WHO_AM_I for the
     1271 * name.
    12711272 *
    12721273 * The node to search is specified in ``node``.  It shall be
  • cpukit/rtems/src/taskident.c

    r99fdfcd r9b6362da  
    4141
    4242#include <rtems/rtems/tasksimpl.h>
     43#include <rtems/rtems/object.h>
    4344#include <rtems/rtems/objectimpl.h>
    4445#include <rtems/score/percpu.h>
     
    5455  }
    5556
    56   if ( name == OBJECTS_ID_OF_SELF ) {
     57  if ( name == RTEMS_WHO_AM_I ) {
    5758    *id = _Thread_Get_executing()->Object.id;
    5859    return RTEMS_SUCCESSFUL;
  • testsuites/libtests/malloctest/task1.c

    r99fdfcd r9b6362da  
    3535  int mem_amt;
    3636
    37   status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &tid );
     37  status = rtems_task_ident( RTEMS_WHO_AM_I, RTEMS_SEARCH_ALL_NODES, &tid );
    3838  directive_failed( status, "rtems_task_ident" );
    3939
  • testsuites/libtests/stackchk/task1.c

    r99fdfcd r9b6362da  
    2626  rtems_status_code status;
    2727
    28   status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &tid );
     28  status = rtems_task_ident( RTEMS_WHO_AM_I, RTEMS_SEARCH_ALL_NODES, &tid );
    2929  directive_failed( status, "rtems_task_ident" );
    3030
  • testsuites/mptests/mp01/task1.c

    r99fdfcd r9b6362da  
    3636  rtems_time_of_day time;
    3737
    38   status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &tid );
     38  status = rtems_task_ident( RTEMS_WHO_AM_I, RTEMS_SEARCH_ALL_NODES, &tid );
    3939  directive_failed( status, "rtems_task_ident" );
    4040
  • testsuites/mptests/mp03/task1.c

    r99fdfcd r9b6362da  
    9595  rtems_status_code status;
    9696
    97   status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &tid );
     97  status = rtems_task_ident( RTEMS_WHO_AM_I, RTEMS_SEARCH_ALL_NODES, &tid );
    9898  directive_failed( status, "rtems_task_ident" );
    9999
  • testsuites/mptests/mp04/task1.c

    r99fdfcd r9b6362da  
    3434  rtems_task_priority previous_priority_1;
    3535
    36   status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &tid );
     36  status = rtems_task_ident( RTEMS_WHO_AM_I, RTEMS_SEARCH_ALL_NODES, &tid );
    3737  directive_failed( status, "rtems_task_ident" );
    3838
  • testsuites/samples/base_mp/apptask.c

    r99fdfcd r9b6362da  
    3333  rtems_status_code status;
    3434
    35   rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &tid );
     35  rtems_task_ident( RTEMS_WHO_AM_I, RTEMS_SEARCH_ALL_NODES, &tid );
    3636  (void) status;
    3737  printf( "This task was invoked with the node argument (%" PRIdrtems_task_argument ")\n", node );
  • testsuites/samples/base_sp/apptask.c

    r99fdfcd r9b6362da  
    3535  unsigned int      a = (unsigned int) argument;
    3636
    37   status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &tid );
     37  status = rtems_task_ident( RTEMS_WHO_AM_I, RTEMS_SEARCH_ALL_NODES, &tid );
    3838  directive_failed( status, "ident" );
    3939
  • testsuites/samples/ticker/tasks.c

    r99fdfcd r9b6362da  
    3131  rtems_status_code status;
    3232
    33   status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &tid );
     33  status = rtems_task_ident( RTEMS_WHO_AM_I, RTEMS_SEARCH_ALL_NODES, &tid );
    3434  directive_failed( status, "task ident" );
    3535
  • testsuites/smptests/smp08/tasks.c

    r99fdfcd r9b6362da  
    2929  rtems_test_assert( p != NULL );
    3030
    31   status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &tid );
     31  status = rtems_task_ident( RTEMS_WHO_AM_I, RTEMS_SEARCH_ALL_NODES, &tid );
    3232  rtems_test_assert( status == RTEMS_SUCCESSFUL );
    3333  task_index = task_number( tid );
  • testsuites/smptests/smpaffinity01/init.c

    r99fdfcd r9b6362da  
    214214
    215215  /* Initialize thread id */
    216   sc = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &Init_id );
     216  sc = rtems_task_ident( RTEMS_WHO_AM_I, RTEMS_SEARCH_ALL_NODES, &Init_id );
    217217  directive_failed( sc, "Identify Init Task" );
    218218
  • testsuites/sptests/sp19/first.c

    r99fdfcd r9b6362da  
    2727  FP_DECLARE;
    2828
    29   status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &tid );
     29  status = rtems_task_ident( RTEMS_WHO_AM_I, RTEMS_SEARCH_ALL_NODES, &tid );
    3030  directive_failed( status, "rtems_task_ident" );
    3131
  • testsuites/sptests/sp19/fptask.c

    r99fdfcd r9b6362da  
    2828  FP_DECLARE;
    2929
    30   status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &tid );
     30  status = rtems_task_ident( RTEMS_WHO_AM_I, RTEMS_SEARCH_ALL_NODES, &tid );
    3131  directive_failed( status, "rtems_task_ident of self" );
    3232
  • testsuites/sptests/sp19/task1.c

    r99fdfcd r9b6362da  
    2525  INTEGER_DECLARE;
    2626
    27   status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &tid );
     27  status = rtems_task_ident( RTEMS_WHO_AM_I, RTEMS_SEARCH_ALL_NODES, &tid );
    2828  directive_failed( status, "rtems_task_ident" );
    2929
  • testsuites/sptests/sp24/task1.c

    r99fdfcd r9b6362da  
    3131  rtems_status_code status;
    3232
    33   status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &tid );
     33  status = rtems_task_ident( RTEMS_WHO_AM_I, RTEMS_SEARCH_ALL_NODES, &tid );
    3434  directive_failed( status, "rtems_task_ident of self" );
    3535
  • testsuites/sptests/sp30/task1.c

    r99fdfcd r9b6362da  
    3131  rtems_status_code status;
    3232
    33   status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &tid );
     33  status = rtems_task_ident( RTEMS_WHO_AM_I, RTEMS_SEARCH_ALL_NODES, &tid );
    3434  directive_failed( status, "rtems_task_ident of self" );
    3535
  • testsuites/sptests/sp42/init.c

    r99fdfcd r9b6362da  
    7575  rtems_task_argument my_obtain_counter;
    7676
    77   status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &tid );
     77  status = rtems_task_ident( RTEMS_WHO_AM_I, RTEMS_SEARCH_ALL_NODES, &tid );
    7878  directive_failed( status, "rtems_task_ident" );
    7979
  • testsuites/sptests/sp76/init.c

    r99fdfcd r9b6362da  
    5050  TEST_BEGIN();
    5151
    52   status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &id );
     52  status = rtems_task_ident( RTEMS_WHO_AM_I, RTEMS_SEARCH_ALL_NODES, &id );
    5353  directive_failed( status, "task ident" );
    5454
  • testsuites/sptests/spcbssched01/task1.c

    r99fdfcd r9b6362da  
    3232  rtems_interval    ticks;
    3333
    34   status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &tid );
     34  status = rtems_task_ident( RTEMS_WHO_AM_I, RTEMS_SEARCH_ALL_NODES, &tid );
    3535  directive_failed( status, "rtems_task_ident" );
    3636
  • testsuites/sptests/spedfsched01/task1.c

    r99fdfcd r9b6362da  
    3232  rtems_interval    ticks;
    3333
    34   status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &tid );
     34  status = rtems_task_ident( RTEMS_WHO_AM_I, RTEMS_SEARCH_ALL_NODES, &tid );
    3535  directive_failed( status, "rtems_task_ident" );
    3636
  • testsuites/sptests/spsimplesched01/init.c

    r99fdfcd r9b6362da  
    3535  rtems_status_code  status;
    3636
    37   status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &tid );
     37  status = rtems_task_ident( RTEMS_WHO_AM_I, RTEMS_SEARCH_ALL_NODES, &tid );
    3838  directive_failed( status, "task ident" );
    3939
  • testsuites/sptests/spsimplesched02/init.c

    r99fdfcd r9b6362da  
    3939  rtems_status_code status;
    4040
    41   status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &tid );
     41  status = rtems_task_ident( RTEMS_WHO_AM_I, RTEMS_SEARCH_ALL_NODES, &tid );
    4242  directive_failed( status, "wake after" );
    4343
  • testsuites/sptests/sptask_err04/task1.c

    r99fdfcd r9b6362da  
    5151
    5252  /* NULL param */
    53   status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, NULL );
     53  status = rtems_task_ident( RTEMS_WHO_AM_I, RTEMS_SEARCH_ALL_NODES, NULL );
    5454  fatal_directive_status(
    5555    status,
     
    6060
    6161  /* OK */
    62   status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &self_id );
     62  status = rtems_task_ident( RTEMS_WHO_AM_I, RTEMS_SEARCH_ALL_NODES, &self_id );
    6363  directive_failed( status, "rtems_task_ident of self" );
    6464  if ( self_id != Task_id[ 1 ] ) {
Note: See TracChangeset for help on using the changeset viewer.