X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fkern%2Fidle.c;h=810560a1a790f6d4a5ed96ff80f66b7354a57d8f;hb=a368e11cb455c0410cfed7c27986ad8ed751a6d1;hp=2ea379c8c8c7bb0358b345339c23df4ae26ec210;hpb=cf6017f59fb2ff71423c716ad9d9f60a1b65c7d0;p=bertos.git diff --git a/bertos/kern/idle.c b/bertos/kern/idle.c index 2ea379c8..810560a1 100644 --- a/bertos/kern/idle.c +++ b/bertos/kern/idle.c @@ -31,16 +31,18 @@ * * \brief Idle loop for preemptive scheduling * - * \version $Id: proc.c 1616 2008-08-10 19:41:26Z bernie $ + * \version $Id$ * \author Bernie Innocenti */ +#include "idle.h" #include "proc.h" #include -static cpustack_t idle_stack[CONFIG_PROC_DEFSTACKSIZE / sizeof(cpustack_t)]; +// below there's a TRACE so we need a big stack +PROC_DEFINE_STACK(idle_stack, KERN_MINSTACKSIZE * 2); /** * The idle process @@ -66,6 +68,6 @@ static NORETURN void idle(void) void idle_init(void) { - Process *idle_proc = proc_new(idle, NULL, sizeof(idle_stack), idle_stack); + struct Process *idle_proc = proc_new(idle, NULL, sizeof(idle_stack), idle_stack); proc_setPri(idle_proc, (int)~0); }