projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
preempt: Implement scheduling priorities
[bertos.git]
/
bertos
/
kern
/
idle.c
diff --git
a/bertos/kern/idle.c
b/bertos/kern/idle.c
index ede234c34f4c296738e3da6ab1a8c8049b6853d6..2ea379c8c8c7bb0358b345339c23df4ae26ec210 100644
(file)
--- a/
bertos/kern/idle.c
+++ b/
bertos/kern/idle.c
@@
-66,5
+66,6
@@
static NORETURN void idle(void)
void idle_init(void)
{
- proc_new(idle, NULL, sizeof(idle_stack), idle_stack);
+ Process *idle_proc = proc_new(idle, NULL, sizeof(idle_stack), idle_stack);
+ proc_setPri(idle_proc, (int)~0);
}