aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/tasks/userspace.h
diff options
context:
space:
mode:
authorMarvin Borner2020-04-26 23:23:42 +0200
committerMarvin Borner2020-04-26 23:23:42 +0200
commitf30c9803f05e90087e367953aa142275f8688f61 (patch)
treebea9166fad90c42ad4551094a5e6eec9098a7f19 /src/kernel/tasks/userspace.h
parent31f671f2137bc09e62de09142bea232c1975c76b (diff)
Awesome new multitasking system and scheduler
Diffstat (limited to 'src/kernel/tasks/userspace.h')
-rw-r--r--src/kernel/tasks/userspace.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/kernel/tasks/userspace.h b/src/kernel/tasks/userspace.h
new file mode 100644
index 0000000..90b64bf
--- /dev/null
+++ b/src/kernel/tasks/userspace.h
@@ -0,0 +1,17 @@
+#ifndef MELVIX_USERSPACE_H
+#define MELVIX_USERSPACE_H
+
+#include <stdint.h>
+#include <kernel/tasks/process.h>
+#include <kernel/interrupts/interrupts.h>
+
+uint32_t spawn_child(struct process *child);
+
+void userspace_enter(struct process *proc);
+
+void single_yield(struct process *proc, struct regs *regs);
+uint32_t single_exit(struct regs *regs);
+
+extern void jump_userspace();
+
+#endif \ No newline at end of file