git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feat: lunadbg GDB plugin to ease kernel debugging process.
[lunaix-os.git]
/
lunaix-os
/
includes
/
lunaix
/
sched.h
diff --git
a/lunaix-os/includes/lunaix/sched.h
b/lunaix-os/includes/lunaix/sched.h
index 69019f3a7a3c92cc796fd6e79010a4c98415f613..7cb313025e3860cb7bd9871e6f5cdb57f7ee25f1 100644
(file)
--- a/
lunaix-os/includes/lunaix/sched.h
+++ b/
lunaix-os/includes/lunaix/sched.h
@@
-3,11
+3,14
@@
#define SCHED_TIME_SLICE 300
#define SCHED_TIME_SLICE 300
+#define PROC_TABLE_SIZE 8192
+#define MAX_PROCESS (PROC_TABLE_SIZE / sizeof(ptr_t))
+
struct scheduler
{
struct scheduler
{
- struct proc_info* _procs;
+ struct proc_info*
*
_procs;
int procs_index;
int procs_index;
-
unsigned
int ptable_len;
+ int ptable_len;
};
void
};
void
@@
-17,6
+20,6
@@
void
schedule();
void
schedule();
void
-sched_yield();
+sched_yield
k
();
#endif /* __LUNAIX_SCHEDULER_H */
#endif /* __LUNAIX_SCHEDULER_H */