From aa8a8811818331cf511681327e3ba95e456f0d33 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 2 May 2020 15:44:11 +0200 Subject: Added many syscalls to get better POSIX compliance --- src/kernel/syscall/actions/sys_exit.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/kernel/syscall/actions/sys_exit.c (limited to 'src/kernel/syscall/actions/sys_exit.c') diff --git a/src/kernel/syscall/actions/sys_exit.c b/src/kernel/syscall/actions/sys_exit.c new file mode 100644 index 0000000..e2761fd --- /dev/null +++ b/src/kernel/syscall/actions/sys_exit.c @@ -0,0 +1,8 @@ +#include +#include + +uint32_t sys_exit(uint32_t code) +{ + current_proc->state = PROC_ASLEEP; + return code; +} \ No newline at end of file -- cgit v1.2.3