diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-05-29 18:02:52 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-05-31 11:05:48 +0200 |
commit | b6911069d42381b89505803e2c699b4271c25e96 (patch) | |
tree | c38a59068cfd7f62f03b3eee7dea6d39e77b8f0e /testsuites/libtests/block06/init.c | |
parent | pc386: Added sections for rtems-libbsd support. (diff) | |
download | rtems-b6911069d42381b89505803e2c699b4271c25e96.tar.bz2 |
libblock: Add task stack size bdbuf configuration
The task stack size for the swap-out and worker tasks is now
configurable. The bdbuf task resources are now included in the work
space size estimate.
Diffstat (limited to 'testsuites/libtests/block06/init.c')
-rw-r--r-- | testsuites/libtests/block06/init.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/testsuites/libtests/block06/init.c b/testsuites/libtests/block06/init.c index b6e6bce245..838f37119a 100644 --- a/testsuites/libtests/block06/init.c +++ b/testsuites/libtests/block06/init.c @@ -113,6 +113,8 @@ typedef struct bdbuf_task_control #define BDBUF_TEST_TASKS (3) +#define BDBUF_TEST_STACK_SIZE (2 * RTEMS_MINIMUM_STACK_SIZE) + /** * Seconds as milli-seconds. */ @@ -649,7 +651,7 @@ bdbuf_tests_create_task (bdbuf_task_control* tc, sc = rtems_task_create (rtems_build_name (tc->name[0], tc->name[1], tc->name[2], tc->name[3]), priority, - 8 * 1024, + BDBUF_TEST_STACK_SIZE, RTEMS_NO_FLOATING_POINT | RTEMS_LOCAL, RTEMS_PREEMPT | RTEMS_NO_TIMESLICE | RTEMS_NO_ASR, &tc->task); @@ -1842,12 +1844,14 @@ static rtems_task Init(rtems_task_argument argument) #define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM -#define CONFIGURE_MAXIMUM_TASKS 8 +#define CONFIGURE_MAXIMUM_TASKS (1 + BDBUF_TEST_TASKS) #define CONFIGURE_MAXIMUM_DRIVERS 3 #define CONFIGURE_MAXIMUM_SEMAPHORES 2 -#define CONFIGURE_INIT_TASK_STACK_SIZE (2 * RTEMS_MINIMUM_STACK_SIZE) +#define CONFIGURE_EXTRA_TASK_STACKS \ + (BDBUF_TEST_TASKS * BDBUF_TEST_STACK_SIZE) +#define CONFIGURE_INIT_TASK_STACK_SIZE BDBUF_TEST_STACK_SIZE #define CONFIGURE_RTEMS_INIT_TASKS_TABLE #include <rtems/confdefs.h> |