monitor: set process priority to -10
authorbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Sun, 31 Aug 2008 11:31:17 +0000 (11:31 +0000)
committerbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Sun, 31 Aug 2008 11:31:17 +0000 (11:31 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1768 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/kern/monitor.c

index 5759c5334b2418c437bebbd21a8c2479cc7c64e7..26e2025b514dab010ec961ae298d0567a3892f5e 100644 (file)
@@ -156,10 +156,10 @@ static void NORETURN monitor(void)
        }
 }
 
-
 void monitor_start(size_t stacksize, cpu_stack_t *stack)
 {
-       proc_new(monitor, NULL, stacksize, stack);
+       struct Process *p = proc_new(monitor, NULL, stacksize, stack);
+       proc_setPri(p, -10);
 }
 
 #endif /* CONFIG_KERN_MONITOR */