aboutsummaryrefslogtreecommitdiff
path: root/src/userspace/libc/unistd/exit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/userspace/libc/unistd/exit.c')
-rw-r--r--src/userspace/libc/unistd/exit.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/userspace/libc/unistd/exit.c b/src/userspace/libc/unistd/exit.c
new file mode 100644
index 0000000..03b54fe
--- /dev/null
+++ b/src/userspace/libc/unistd/exit.c
@@ -0,0 +1,9 @@
+#include <stdint.h>
+#include <syscall.h>
+
+void exit(u32 code)
+{
+ syscall_exit(code);
+ while (1) {
+ };
+} \ No newline at end of file