summaryrefslogtreecommitdiff
path: root/kernel/proc.h
diff options
context:
space:
mode:
authordzwdz2021-06-25 21:57:30 +0200
committerdzwdz2021-06-25 21:57:30 +0200
commit7e8a831e1fa1fb98d2486f0c262c2609c176abab (patch)
treead3304a0d16281e019b1e33f7383ed4b97f89afb /kernel/proc.h
parent654ca8603381ffa385350242cfb96906cf612279 (diff)
malloc stub + processes
well, there's only one process, but shh
Diffstat (limited to 'kernel/proc.h')
-rw-r--r--kernel/proc.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/kernel/proc.h b/kernel/proc.h
new file mode 100644
index 0000000..976b275
--- /dev/null
+++ b/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);