summaryrefslogtreecommitdiff
path: root/src/sys/include/os/sched.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sys/include/os/sched.h')
-rw-r--r--src/sys/include/os/sched.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/sys/include/os/sched.h b/src/sys/include/os/sched.h
index b393395..1850366 100644
--- a/src/sys/include/os/sched.h
+++ b/src/sys/include/os/sched.h
@@ -35,6 +35,7 @@
#include <sys/proc.h>
#include <os/spinlock.h>
+#define SCHED_QUANTUM 10000
#define SCHED_NQUEUES 4
/*
@@ -50,6 +51,13 @@ struct sched_queue {
};
/*
+ * Context switch to another process
+ *
+ * @tf: Current CPU context frame
+ */
+void md_sched_switch(struct trapframe *tf);
+
+/*
* Enqueue a new process to a queue
*
* @q: Queue to target