From: qwert Date: Tue, 29 Jul 2008 14:59:11 +0000 (+0000) Subject: Replaced macro that remove node from list with the correct method list_remHead. Now... X-Git-Tag: 2.0.0~405 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=ef33330c3e830d29142c4a933c1a77732a20f025;p=bertos.git Replaced macro that remove node from list with the correct method list_remHead. Now Scheduler on bertos emulator works. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1529 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/kern/proc.c b/bertos/kern/proc.c index 4d8a6fb7..7d0de472 100644 --- a/bertos/kern/proc.c +++ b/bertos/kern/proc.c @@ -152,8 +152,8 @@ struct Process *proc_new_with_name(UNUSED(const char *, name), void (*entry)(voi #if (ARCH & ARCH_EMUL) /* Ignore stack provided by caller and use the large enough default instead. */ - stack_base = (cpustack_t *)LIST_HEAD(&StackFreeList); - REMOVE(LIST_HEAD(&StackFreeList)); + stack_base = (cpustack_t *)list_remHead(&StackFreeList); + stacksize = CONFIG_PROC_DEFSTACKSIZE; #elif CONFIG_KERN_HEAP /* Did the caller provide a stack for us? */