X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fkern%2Fidle.c;h=ecbe5915ca48903a55cc8ac30081aefd1f0352e5;hb=0eeba5822b3ff0e76ae0fd0272536d371d272d7d;hp=ede234c34f4c296738e3da6ab1a8c8049b6853d6;hpb=368b5a0d273a9dc64e06d28e073b2577ba4c06fe;p=bertos.git diff --git a/bertos/kern/idle.c b/bertos/kern/idle.c index ede234c3..ecbe5915 100644 --- a/bertos/kern/idle.c +++ b/bertos/kern/idle.c @@ -40,7 +40,7 @@ #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,5 +66,6 @@ static NORETURN void idle(void) void idle_init(void) { - 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); }