aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/tasks/userspace.h
diff options
context:
space:
mode:
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