summaryrefslogtreecommitdiffstats
path: root/testsuites/samples/unlimited/system.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2003-01-03 20:51:34 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2003-01-03 20:51:34 +0000
commit3d9f688e242fb73c10b2e945d2a4302420f35aa9 (patch)
treea8e470bad67db71de2168b48a6fcddedf1934af0 /testsuites/samples/unlimited/system.h
parent2003-01-03 Jitendra Vegiraju <jvegiraju@netscape.net> (diff)
downloadrtems-3d9f688e242fb73c10b2e945d2a4302420f35aa9.tar.bz2
2002-10-31 Chris Johns <ccj@acm.org>
* unlimited/test1.c: PR296. Only fails if more tasks than allowed can be created. * unlimited/system.h: PR296. Reference the number of tasks in the configuration table rather than a hardcoded number.
Diffstat (limited to '')
-rw-r--r--testsuites/samples/unlimited/system.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/testsuites/samples/unlimited/system.h b/testsuites/samples/unlimited/system.h
index 46e3991a65..f689847870 100644
--- a/testsuites/samples/unlimited/system.h
+++ b/testsuites/samples/unlimited/system.h
@@ -46,7 +46,9 @@ void test3();
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
-#define TASK_ALLOCATION_SIZE (5)
+#define TASK_ALLOCATION_SIZE \
+ (rtems_configuration_get_rtems_api_configuration()->maximum_tasks & \
+ ~RTEMS_UNLIMITED_OBJECTS)
#define CONFIGURE_MAXIMUM_TASKS rtems_resource_unlimited(TASK_ALLOCATION_SIZE)
#define CONFIGURE_EXTRA_TASK_STACKS (62 * RTEMS_MINIMUM_STACK_SIZE)