summaryrefslogtreecommitdiffstats
path: root/testsuite/thread01
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-01-20 08:57:36 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-01-20 09:19:04 +0100
commit33a15c304bf9ae77697eb7383972125526e9bd7c (patch)
tree5f597d4d03665279cb6ec727bf921ce8b75afb6c /testsuite/thread01
parentAdd and use rtems_bsd_get_task_priority() (diff)
downloadrtems-libbsd-33a15c304bf9ae77697eb7383972125526e9bd7c.tar.bz2
Add and use rtems_bsd_get_task_stack_size()
Diffstat (limited to 'testsuite/thread01')
-rw-r--r--testsuite/thread01/test_main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/testsuite/thread01/test_main.c b/testsuite/thread01/test_main.c
index 2fd13ea2..4c835b5a 100644
--- a/testsuite/thread01/test_main.c
+++ b/testsuite/thread01/test_main.c
@@ -43,6 +43,8 @@
#include <sys/kthread.h>
#include <sys/errno.h>
+#include <rtems/bsd/bsd.h>
+
#include <rtems.h>
#include <rtems/libcsupport.h>
#include <rtems/score/threaddispatch.h>
@@ -210,7 +212,7 @@ test_kthread_add(void)
{
rtems_resource_snapshot snapshot;
void *greedy;
- uintptr_t take_away = 2 * BSD_MINIMUM_TASK_STACK_SIZE;
+ uintptr_t take_away = 2 * rtems_bsd_get_task_stack_size("");
puts("test kthread_add()");