aboutsummaryrefslogtreecommitdiff
path: root/src/tcb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tcb.c')
-rw-r--r--src/tcb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tcb.c b/src/tcb.c
index ea00d3d..053ea6f 100644
--- a/src/tcb.c
+++ b/src/tcb.c
@@ -102,14 +102,14 @@ stat_t alloc_stack(struct tcb *t)
/* get parent process */
struct tcb *p = get_tcb(t->eid);
- t->thread_stack = __setup_thread_stack(p, __thread_stack_size);
+ t->thread_stack = __setup_thread_stack(p, thread_stack_size());
if (!t->thread_stack)
return ERR_OOMEM;
/** \todo this only allows for a global stack size, what if a user wants
* per thread stack sizes? I guess allocate them yourself in userspace
* or something? */
- t->thread_stack_size = __thread_stack_size;
+ t->thread_stack_size = thread_stack_size();
return OK;
}