X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/8357bda627bdf02c1b69eecf27993182239fb463..09aa85cf875db1e6fd1317cd2b9947b9d3675d6c:/lunaix-os/includes/lunaix/sched.h?ds=sidebyside diff --git a/lunaix-os/includes/lunaix/sched.h b/lunaix-os/includes/lunaix/sched.h index 69019f3..f31eab5 100644 --- a/lunaix-os/includes/lunaix/sched.h +++ b/lunaix-os/includes/lunaix/sched.h @@ -3,9 +3,12 @@ #define SCHED_TIME_SLICE 300 +#define PROC_TABLE_SIZE 8192 +#define MAX_PROCESS (PROC_TABLE_SIZE / sizeof(uintptr_t)) + struct scheduler { - struct proc_info* _procs; + struct proc_info** _procs; int procs_index; unsigned int ptable_len; }; @@ -17,6 +20,6 @@ void schedule(); void -sched_yield(); +sched_yieldk(); #endif /* __LUNAIX_SCHEDULER_H */