Paste.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 10 Sep 2009 09:17:54 +0000 (09:17 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 10 Sep 2009 09:17:54 +0000 (09:17 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2917 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/kern/proc.c

index 3b727a2dda5c2ea4744999503ccf650269486304..1b9042a707a7d86fc55111ce0ade7a9f3af079ed 100644 (file)
@@ -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++;
        }