diff options
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; } |