From ef33330c3e830d29142c4a933c1a77732a20f025 Mon Sep 17 00:00:00 2001 From: qwert Date: Tue, 29 Jul 2008 14:59:11 +0000 Subject: [PATCH] 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 --- bertos/kern/proc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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? */ -- 2.25.1