diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-04-03 12:55:43 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-04-04 14:27:27 -0500 |
commit | d507c0373168e6375b1e876d79730bff8020cb58 (patch) | |
tree | 1ca65b27019e70bdeef2e7d01357cfdbae2a0d5b /testsuites/smptests/smpunsupported01 | |
parent | rhealstone/rhmlatency: Fix configuration (diff) | |
download | rtems-d507c0373168e6375b1e876d79730bff8020cb58.tar.bz2 |
Disable per task variables when SMP is enabled
Per task variables are inherently unsafe in SMP systems. This
patch disables them from the build and adds warnings in the
appropriate documentation and configuration sections.
Diffstat (limited to 'testsuites/smptests/smpunsupported01')
-rw-r--r-- | testsuites/smptests/smpunsupported01/init.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/testsuites/smptests/smpunsupported01/init.c b/testsuites/smptests/smpunsupported01/init.c index 3a819b8f79..9d69b6bdc6 100644 --- a/testsuites/smptests/smpunsupported01/init.c +++ b/testsuites/smptests/smpunsupported01/init.c @@ -1,4 +1,5 @@ /* + * Copyright (c) 2014 On-Line Applications Research Corporation (OAR). * Copyright (c) 2013-2014 embedded brains GmbH. All rights reserved. * * embedded brains GmbH @@ -28,15 +29,6 @@ static void test(void) rtems_test_assert(rtems_configuration_is_smp_enabled()); - sc = rtems_task_variable_add(RTEMS_SELF, NULL, NULL); - rtems_test_assert(sc == RTEMS_NOT_IMPLEMENTED); - - sc = rtems_task_variable_delete(RTEMS_SELF, NULL); - rtems_test_assert(sc == RTEMS_NOT_IMPLEMENTED); - - sc = rtems_task_variable_get(RTEMS_SELF, NULL, NULL); - rtems_test_assert(sc == RTEMS_NOT_IMPLEMENTED); - sc = rtems_task_mode(RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &mode); rtems_test_assert(sc == RTEMS_NOT_IMPLEMENTED); |