diff options
Diffstat (limited to 'cpukit/rtems/src/taskident.c')
-rw-r--r-- | cpukit/rtems/src/taskident.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cpukit/rtems/src/taskident.c b/cpukit/rtems/src/taskident.c index 74a0a53982..cd5fec5817 100644 --- a/cpukit/rtems/src/taskident.c +++ b/cpukit/rtems/src/taskident.c @@ -10,7 +10,7 @@ */ /* - * Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) + * Copyright (C) 2020 embedded brains GmbH & Co. KG * Copyright (C) 1989 On-Line Applications Research Corporation (OAR). * * Redistribution and use in source and binary forms, with or without @@ -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; } |