*
* \brief Idle loop for preemptive scheduling
*
- * \version $Id: proc.c 1616 2008-08-10 19:41:26Z bernie $
+ * \version $Id$
* \author Bernie Innocenti <bernie@codewiz.org>
*/
+#include "idle.h"
#include "proc.h"
#include <cfg/module.h>
-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
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);
}