X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fkern%2Fproc_test.c;h=b8de22d7d1c483622e3e20a7412b54c5c497d5a1;hb=aef90f5745580ad12b9a69409bf1af85aa382f9d;hp=5adcbc0160f25adb2cb713614ad20aa016f6fb77;hpb=efaa76e41313ea66ca001bd09948d90c52e58c5c;p=bertos.git diff --git a/bertos/kern/proc_test.c b/bertos/kern/proc_test.c index 5adcbc01..b8de22d7 100644 --- a/bertos/kern/proc_test.c +++ b/bertos/kern/proc_test.c @@ -52,6 +52,10 @@ * $test$: echo "#define CONFIG_KERN_PRI 1" >> $cfgdir/cfg_proc.h * $test$: echo "#undef CONFIG_KERN_PREEMPT" >> $cfgdir/cfg_proc.h * $test$: echo "#define CONFIG_KERN_PREEMPT 1" >> $cfgdir/cfg_proc.h + * $test$: echo "#undef CONFIG_KERN_HEAP" >> $cfgdir/cfg_proc.h + * $test$: echo "#define CONFIG_KERN_HEAP 1" >> $cfgdir/cfg_proc.h + * $test$: echo "#undef CONFIG_KERN_HEAP_SIZE" >> $cfgdir/cfg_proc.h + * $test$: echo "#define CONFIG_KERN_HEAP_SIZE 2097152L" >> $cfgdir/cfg_proc.h * $test$: cp bertos/cfg/cfg_monitor.h $cfgdir/ * $test$: sed -i "s/CONFIG_KERN_MONITOR 0/CONFIG_KERN_MONITOR 1/" $cfgdir/cfg_monitor.h * $test$: cp bertos/cfg/cfg_signal.h $cfgdir/ @@ -91,7 +95,7 @@ static cpu_atomic_t main_barrier; #define DELAY 5 // Define process stacks for test. -#define WORKER_STACK_SIZE KERN_MINSTACKSIZE * 2 +#define WORKER_STACK_SIZE KERN_MINSTACKSIZE * 3 #if CONFIG_KERN_HEAP #define WORKER_STACK(id) NULL @@ -217,7 +221,7 @@ static void preempt_worker(void) if (UNLIKELY(*my_count == (unsigned int)~0)) *my_count = 1; } - PROC_ATOMIC(kprintf("> %s[%zd] completed: (counter = %d)\n", + PROC_ATOMIC(kprintf("> %s[%zd] completed: (counter = %lu)\n", __func__, pid, *my_count)); for (i = 0; i < TASKS; i++) if (!preempt_counter[i])