From: batt Date: Wed, 9 Sep 2009 20:48:10 +0000 (+0000) Subject: Now stack_size is the real size, there's no need to subtract the size of the Process... X-Git-Tag: 2.2.0~54 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=6598285d95f6081c4982e9f060de5e5be6289650;p=bertos.git Now stack_size is the real size, there's no need to subtract the size of the Process struct because this is already done before. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2914 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/kern/proc.c b/bertos/kern/proc.c index 6b1aaaff..3b727a2d 100644 --- a/bertos/kern/proc.c +++ b/bertos/kern/proc.c @@ -233,7 +233,7 @@ struct Process *proc_new_with_name(UNUSED_ARG(const char *, name), void (*entry) getcontext(&proc->context); proc->context.uc_stack.ss_sp = proc->stack; - proc->context.uc_stack.ss_size = stack_size - PROC_SIZE_WORDS - 1; + proc->context.uc_stack.ss_size = stack_size - 1; proc->context.uc_link = NULL; makecontext(&proc->context, (void (*)(void))proc_entry, 1, entry);