diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-11-18 12:13:53 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-11-18 19:59:14 +0100 |
commit | 9b6362da712e58f39ac637b1705e6f6ea16c0be9 (patch) | |
tree | 6d5c05f724c478e7d86ade1b2a947c8811aa3b89 /cpukit | |
parent | rtems: Add signal header to implementation group (diff) | |
download | rtems-9b6362da712e58f39ac637b1705e6f6ea16c0be9.tar.bz2 |
rtems: Use RTEMS_WHO_AM_I for rtems_task_ident()
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/include/rtems/rtems/tasks.h | 3 | ||||
-rw-r--r-- | cpukit/rtems/src/taskident.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/cpukit/include/rtems/rtems/tasks.h b/cpukit/include/rtems/rtems/tasks.h index 8c6e8a3bca..0392586759 100644 --- a/cpukit/include/rtems/rtems/tasks.h +++ b/cpukit/include/rtems/rtems/tasks.h @@ -1267,7 +1267,8 @@ rtems_status_code rtems_task_construct( * This directive obtains a task identifier associated with the task name * specified in ``name``. * - * A task may obtain its own identifier by specifying #RTEMS_SELF for the name. + * A task may obtain its own identifier by specifying #RTEMS_WHO_AM_I for the + * name. * * The node to search is specified in ``node``. It shall be * diff --git a/cpukit/rtems/src/taskident.c b/cpukit/rtems/src/taskident.c index 74a0a53982..89c2c7ce7e 100644 --- a/cpukit/rtems/src/taskident.c +++ b/cpukit/rtems/src/taskident.c @@ -40,6 +40,7 @@ #endif #include <rtems/rtems/tasksimpl.h> +#include <rtems/rtems/object.h> #include <rtems/rtems/objectimpl.h> #include <rtems/score/percpu.h> @@ -53,7 +54,7 @@ rtems_status_code rtems_task_ident( return RTEMS_INVALID_ADDRESS; } - if ( name == OBJECTS_ID_OF_SELF ) { + if ( name == RTEMS_WHO_AM_I ) { *id = _Thread_Get_executing()->Object.id; return RTEMS_SUCCESSFUL; } |