X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fkern%2Fidle.c;h=229058bd4ba1c0e538a591baeda3e907ef1d2639;hb=1cdcadf620678aca50bc36a0ff24986140720f3b;hp=2ea379c8c8c7bb0358b345339c23df4ae26ec210;hpb=cf6017f59fb2ff71423c716ad9d9f60a1b65c7d0;p=bertos.git diff --git a/bertos/kern/idle.c b/bertos/kern/idle.c index 2ea379c8..229058bd 100644 --- a/bertos/kern/idle.c +++ b/bertos/kern/idle.c @@ -35,12 +35,13 @@ * \author Bernie Innocenti */ +#include "idle.h" #include "proc.h" #include -static cpustack_t idle_stack[CONFIG_PROC_DEFSTACKSIZE / sizeof(cpustack_t)]; +static cpustack_t idle_stack[CONFIG_KERN_MINSTACKSIZE / sizeof(cpustack_t)]; /** * The idle process @@ -66,6 +67,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); }