X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fkern%2Fproc.c;h=1fdf9f353f97aadedf46cbf85000efa4cec2ba74;hb=4cc44c9888a0336b9d01121ec0b7ad95f4a76195;hp=4d8a6fb7ba2f8383ef10bd9b0beb4e08bf86eeee;hpb=c22fe24a0da896a52dbc3882390ec18a440ef56a;p=bertos.git diff --git a/bertos/kern/proc.c b/bertos/kern/proc.c index 4d8a6fb7..1fdf9f35 100644 --- a/bertos/kern/proc.c +++ b/bertos/kern/proc.c @@ -27,7 +27,7 @@ * the GNU General Public License. * * Copyright 2001,2004 Develer S.r.l. (http://www.develer.com/) - * Copyright 1999,2000,2001 Bernardo Innocenti + * Copyright 1999,2000,2001 Bernie Innocenti * * --> * @@ -36,7 +36,7 @@ * * \version $Id$ * - * \author Bernardo Innocenti + * \author Bernie Innocenti * \author Stefano Fedrigo */ @@ -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? */