diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-18 11:39:44 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-22 16:46:01 +0200 |
commit | 79d9523f1990e3349bd2dab83e92faee105b44a9 (patch) | |
tree | 0ecfc6c0e27b10e6a795083176567245dbdafa80 /cpukit/rtems/src/taskvariableget.c | |
parent | rtems: Error for task delete on SMP (diff) | |
download | rtems-79d9523f1990e3349bd2dab83e92faee105b44a9.tar.bz2 |
rtems: Error for task variables on SMP
Task variables are not supported on SMP.
Diffstat (limited to 'cpukit/rtems/src/taskvariableget.c')
-rw-r--r-- | cpukit/rtems/src/taskvariableget.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cpukit/rtems/src/taskvariableget.c b/cpukit/rtems/src/taskvariableget.c index 338e108389..c1524a463e 100644 --- a/cpukit/rtems/src/taskvariableget.c +++ b/cpukit/rtems/src/taskvariableget.c @@ -19,6 +19,7 @@ #endif #include <rtems/system.h> +#include <rtems/config.h> #include <rtems/rtems/tasks.h> #include <rtems/score/wkspace.h> @@ -38,6 +39,12 @@ rtems_status_code rtems_task_variable_get( Objects_Locations location; rtems_task_variable_t *tvp; +#if defined( RTEMS_SMP ) + if ( rtems_configuration_is_smp_enabled() ) { + return RTEMS_NOT_IMPLEMENTED; + } +#endif + if ( !ptr ) return RTEMS_INVALID_ADDRESS; |