X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fkern%2Fproc.c;h=c422e729c6912963f51bfcd89f75a7cee269e290;hb=56bc2446f9445052fb0d7b1643628bbf4fc3cfe0;hp=18c89599eb689dcce8344ef5be7a9af626f669d2;hpb=e62f2f13f13bca63f05e8ce92c945dcadb0f712f;p=bertos.git diff --git a/bertos/kern/proc.c b/bertos/kern/proc.c index 18c89599..c422e729 100644 --- a/bertos/kern/proc.c +++ b/bertos/kern/proc.c @@ -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); }