summaryrefslogtreecommitdiff
path: root/src/kernel/proc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/proc.h')
-rw-r--r--src/kernel/proc.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/kernel/proc.h b/src/kernel/proc.h
new file mode 100644
index 0000000..976b275
--- /dev/null
+++ b/src/kernel/proc.h
@@ -0,0 +1,13 @@
+#pragma once
+
+struct process {
+ void *stack_top;
+ void *esp;
+
+ void *eip;
+};
+
+extern struct process *process_current;
+
+struct process *process_new(void *eip);
+void process_switch(struct process *proc);