From: bernie Date: Sun, 31 Aug 2008 11:31:17 +0000 (+0000) Subject: monitor: set process priority to -10 X-Git-Tag: 2.0.0~166 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=570a53d354d611597f9d422dfbb47a609e788204;p=bertos.git monitor: set process priority to -10 git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1768 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/kern/monitor.c b/bertos/kern/monitor.c index 5759c533..26e2025b 100644 --- a/bertos/kern/monitor.c +++ b/bertos/kern/monitor.c @@ -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 */