summaryrefslogtreecommitdiffstats
path: root/testsuite/thread01/test_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/thread01/test_main.c')
-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()");