From 6598285d95f6081c4982e9f060de5e5be6289650 Mon Sep 17 00:00:00 2001 From: batt Date: Wed, 9 Sep 2009 20:48:10 +0000 Subject: [PATCH] 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 --- bertos/kern/proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.25.1