diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-03 07:38:19 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-04 07:24:30 +0200 |
commit | 1d40d81b4b8dd50e4162b0b79b60d3312d2744e5 (patch) | |
tree | 9c7dc074ea705a924742d965dcd22afef579cb5b /testsuites/psxtests | |
parent | bsp/mvme5500: Use thread local variable (diff) | |
download | rtems-1d40d81b4b8dd50e4162b0b79b60d3312d2744e5.tar.bz2 |
rtems: Remove task variables
Update #2494.
Update #2555.
Diffstat (limited to 'testsuites/psxtests')
-rw-r--r-- | testsuites/psxtests/psxconfig01/init.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/testsuites/psxtests/psxconfig01/init.c b/testsuites/psxtests/psxconfig01/init.c index 9f3c134a6d..582fd11197 100644 --- a/testsuites/psxtests/psxconfig01/init.c +++ b/testsuites/psxtests/psxconfig01/init.c @@ -57,9 +57,6 @@ const char rtems_test_name[] = "PSXCONFIG 1"; #define CONFIGURE_MAXIMUM_REGIONS 43 #define CONFIGURE_MAXIMUM_SEMAPHORES 47 #define CONFIGURE_MAXIMUM_TASKS 11 -#if !defined(RTEMS_SMP) - #define CONFIGURE_MAXIMUM_TASK_VARIABLES 13 -#endif #define CONFIGURE_MAXIMUM_TIMERS 59 #define CONFIGURE_MAXIMUM_USER_EXTENSIONS 17 @@ -202,10 +199,6 @@ typedef struct { static char posix_name [_POSIX_PATH_MAX + 1]; -#if !defined(RTEMS_SMP) - static void *task_var; -#endif - static char *get_posix_name(char a, char b, char c, int i) { posix_name [_POSIX_PATH_MAX - 4] = a; @@ -216,13 +209,6 @@ static char *get_posix_name(char a, char b, char c, int i) return posix_name; } -#if !defined(RTEMS_SMP) -static void task_var_dtor(void *var RTEMS_UNUSED) -{ - /* Do nothing */ -} -#endif - static void *posix_thread(void *arg RTEMS_UNUSED) { rtems_test_assert(0); @@ -435,21 +421,6 @@ static rtems_task Init(rtems_task_argument argument) ); #endif -#if !defined(RTEMS_SMP) -#ifdef CONFIGURE_MAXIMUM_TASK_VARIABLES - /* - * We know this is deprecated and don't want a warning on every BSP built. - */ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wdeprecated-declarations" - for (i = 0; i < CONFIGURE_MAXIMUM_TASK_VARIABLES; ++i) { - sc = rtems_task_variable_add(RTEMS_SELF, &task_var, task_var_dtor); - directive_failed(sc, "rtems_task_variable_add"); - } - #pragma GCC diagnostic pop -#endif -#endif - #ifdef CONFIGURE_MAXIMUM_TIMERS for (i = 0; i < CONFIGURE_MAXIMUM_TIMERS; ++i) { sc = rtems_timer_create(name, &id); |