diff options
author | Ian Moffett <ian@osmora.org> | 2024-05-19 22:37:00 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-05-19 22:37:00 -0400 |
commit | 9cff7866d58bfd48cad3f32882b957499c06a649 (patch) | |
tree | d1360ef0d12717c319791c219a24186a3a040e0c /sys/kern/kern_syscall.c | |
parent | d13ff179e6c1fc418891e6f55943313f1cf2bdc8 (diff) |
kernel: Add reboot() and reboot syscall
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/kern/kern_syscall.c')
-rw-r--r-- | sys/kern/kern_syscall.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 <sys/filedesc.h> #include <sys/system.h> #include <sys/exec.h> +#include <sys/reboot.h> #include <sys/vfs.h> #include <vm/map.h> @@ -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 }; |