summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-09-20 20:51:50 -0400
committerIan Moffett <ian@osmora.org>2025-09-20 20:51:50 -0400
commit954389acc4fdda1b6dbd3e9c3cf6d5767af40a84 (patch)
tree4785238f8b1f97a2f57e5b9ea521ef4671c000ae
parentaac5073d768926322ec38ca7153fd8f14e20a88e (diff)
kern: proc: Move sys_exit() to sys/compat/unix/*
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r--src/sys/compat/unix/os/proc_syscall.c (renamed from src/sys/os/proc_syscall.c)3
-rw-r--r--src/sys/include/compat/unix/syscall.h5
-rw-r--r--src/sys/include/sys/proc.h5
-rw-r--r--src/sys/os/Makefile1
4 files changed, 7 insertions, 7 deletions
diff --git a/src/sys/os/proc_syscall.c b/src/sys/compat/unix/os/proc_syscall.c
index e71d546..1838761 100644
--- a/src/sys/os/proc_syscall.c
+++ b/src/sys/compat/unix/os/proc_syscall.c
@@ -33,8 +33,7 @@
#include <sys/proc.h>
#include <sys/cdefs.h>
#include <sys/param.h>
-
-#include <sys/syslog.h>
+#include <compat/unix/syscall.h>
/*
* ARG 0: Status
diff --git a/src/sys/include/compat/unix/syscall.h b/src/sys/include/compat/unix/syscall.h
index 8d0af91..2bb699a 100644
--- a/src/sys/include/compat/unix/syscall.h
+++ b/src/sys/include/compat/unix/syscall.h
@@ -34,6 +34,11 @@
#include <sys/param.h>
#include <sys/syscall.h>
+/*
+ * Exit the current process - exit(2) syscall
+ */
+scret_t sys_exit(struct syscall_args *scargs);
+
#ifdef _NEED_UNIX_SCTAB
scret_t(*g_unix_sctab[])(struct syscall_args *) = {
[SYS_none] = NULL,
diff --git a/src/sys/include/sys/proc.h b/src/sys/include/sys/proc.h
index cf00850..2ff2876 100644
--- a/src/sys/include/sys/proc.h
+++ b/src/sys/include/sys/proc.h
@@ -159,10 +159,5 @@ __dead void md_proc_yield(void);
*/
__dead void md_proc_kick(struct proc *procp);
-/*
- * Exit the current process - exit(2) syscall
- */
-scret_t sys_exit(struct syscall_args *scargs);
-
#endif /* !_KERNEL */
#endif /* !_SYS_PROC_H_ */
diff --git a/src/sys/os/Makefile b/src/sys/os/Makefile
index ed8ac6e..de73afd 100644
--- a/src/sys/os/Makefile
+++ b/src/sys/os/Makefile
@@ -11,6 +11,7 @@ CFILES += $(shell find ../vm -name "*.c")
CFILES += $(shell find ../lib -name "*.c")
CFILES += $(shell find ../io -name "*.c")
CFILES += $(shell find ../acpi -name "*.c")
+CFILES += $(shell find ../compat -name "*.c")
DEPS = $(CFILES:.c=.d)
OBJECTS = $(CFILES:%.c=%.o)