X-Git-Url: https://codewiz.org/gitweb?p=bertos.git;a=blobdiff_plain;f=bertos%2Fkern%2Fproc_p.h;h=27d65fe288193a3a78aa579c370fbb43273f1586;hp=5d106242de54a482a16f76f46b352fa626174a9f;hb=d9d931610bca1df6ceb9227eacc9ff2c7f89b77a;hpb=1c675e3194ab2c54098866018f4856c736922553 diff --git a/bertos/kern/proc_p.h b/bertos/kern/proc_p.h index 5d106242..27d65fe2 100644 --- a/bertos/kern/proc_p.h +++ b/bertos/kern/proc_p.h @@ -49,7 +49,6 @@ #include // IRQ_ASSERT_DISABLED() #include // struct Process -#include // idle_proc /** @@ -71,7 +70,7 @@ extern REGISTER Process *current_process; extern REGISTER List proc_ready_list; #if CONFIG_KERN_PRI - #define prio_next() (LIST_EMPTY(&proc_ready_list) ? idle_proc->link.pri : \ + #define prio_next() (LIST_EMPTY(&proc_ready_list) ? INT_MIN : \ ((PriNode *)LIST_HEAD(&proc_ready_list))->pri) #define prio_curr() (current_process->link.pri) @@ -151,6 +150,9 @@ void proc_entry(void); /* Schedule another process *without* adding the current one to the ready list. */ void proc_switch(void); +/* Low level scheduling routine. */ +void proc_schedule(void); + /* Initialize a scheduler class. */ void proc_schedInit(void);