aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_exit.c
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-07-04 23:35:00 -0400
committerIan Moffett <ian@osmora.org>2024-07-04 23:35:00 -0400
commit398e92ea9c4fdfbf5464eb99f3af79f6d583d693 (patch)
tree878799c8f712e64571c598728387207914b2cc3e /sys/kern/kern_exit.c
parent077074920685a5f2da0cb78198cb5f2d1873d239 (diff)
kernel/amd64: Add syscall support + SYS_exit
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/kern/kern_exit.c')
-rw-r--r--sys/kern/kern_exit.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c
index 9995f51..04490b0 100644
--- a/sys/kern/kern_exit.c
+++ b/sys/kern/kern_exit.c
@@ -76,3 +76,10 @@ exit1(struct proc *td)
return 0;
}
+
+scret_t
+sys_exit(struct syscall_args *scargs)
+{
+ exit1(this_td());
+ __builtin_unreachable();
+}