From 9cff7866d58bfd48cad3f32882b957499c06a649 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sun, 19 May 2024 22:37:00 -0400 Subject: kernel: Add reboot() and reboot syscall Signed-off-by: Ian Moffett --- sys/kern/kern_syscall.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/kern/kern_syscall.c') diff --git a/sys/kern/kern_syscall.c b/sys/kern/kern_syscall.c index 9faa5af..35185ea 100644 --- a/sys/kern/kern_syscall.c +++ b/sys/kern/kern_syscall.c @@ -34,6 +34,7 @@ #include #include #include +#include #include #include @@ -48,5 +49,6 @@ uint64_t(*g_syscall_table[__MAX_SYSCALLS])(struct syscall_args *args) = { sys_munmap, sys_ioctl, sys_execv, - sys_mount + sys_mount, + sys_reboot }; -- cgit v1.2.3