From: asterix Date: Thu, 10 Sep 2009 09:17:54 +0000 (+0000) Subject: Paste. X-Git-Tag: 2.2.0~51 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=f364e0781c076e8f61c769fbaf29b968a03db2c0;p=bertos.git Paste. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2917 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/kern/proc.c b/bertos/kern/proc.c index 3b727a2d..1b9042a7 100644 --- a/bertos/kern/proc.c +++ b/bertos/kern/proc.c @@ -203,7 +203,7 @@ struct Process *proc_new_with_name(UNUSED_ARG(const char *, name), void (*entry) proc = (Process *)stack_base; proc->stack = stack_base + PROC_SIZE_WORDS; // On some architecture stack should be aligned, so we do it. - proc->stack = (void *)proc->stack + (sizeof(cpu_aligned_stack_t) - ((long)proc->stack % sizeof(cpu_stack_aligned_t))); + proc->stack = (void *)proc->stack + (sizeof(cpu_aligned_stack_t) - ((long)proc->stack % sizeof(cpu_aligned_stack_t))); if (CPU_SP_ON_EMPTY_SLOT) proc->stack++; }