Add and use rtems_bsd_get_task_stack_size()

This commit is contained in:
Sebastian Huber
2015-01-20 08:57:36 +01:00
parent 91ea7ea614
commit 33a15c304b
10 changed files with 72 additions and 7 deletions

View File

@@ -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()");