Parametric scheduler approach.
[bertos.git] / bertos / kern / proc.c
index 18c89599eb689dcce8344ef5be7a9af626f669d2..c422e729c6912963f51bfcd89f75a7cee269e290 100644 (file)
@@ -85,7 +85,7 @@ static struct Process main_process;
 /**
  * Local heap dedicated to allocate the memory used by the processes.
  */
-static HEAP_DEFINE_BUF(heap_buf, KERN_MINSTACKSIZE * 128);
+static HEAP_DEFINE_BUF(heap_buf, CONFIG_KERN_HEAP_SIZE);
 static Heap proc_heap;
 
 /*
@@ -139,10 +139,7 @@ void proc_init(void)
        monitor_init();
        monitor_add(current_process, "main");
 #endif
-
-#if CONFIG_KERN_PREEMPT
-       preempt_init();
-#endif
+       proc_schedInit();
 
        MOD_INIT(proc);
 }