Replaced macro that remove node from list with the correct method list_remHead. Now...
authorqwert <qwert@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 29 Jul 2008 14:59:11 +0000 (14:59 +0000)
committerqwert <qwert@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 29 Jul 2008 14:59:11 +0000 (14:59 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1529 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/kern/proc.c

index 4d8a6fb7ba2f8383ef10bd9b0beb4e08bf86eeee..7d0de4721c3db41f409475abf62cce70f6488dac 100644 (file)
@@ -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? */