diff options
Diffstat (limited to 'sys/include')
-rw-r--r-- | sys/include/sys/reboot.h | 4 | ||||
-rw-r--r-- | sys/include/sys/syscall.h | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/sys/include/sys/reboot.h b/sys/include/sys/reboot.h index eeb55f8..846073d 100644 --- a/sys/include/sys/reboot.h +++ b/sys/include/sys/reboot.h @@ -32,13 +32,15 @@ #include <sys/param.h> #include <sys/cdefs.h> +#include <sys/syscall.h> -#if defined(_KERNEL) #define REBOOT_RESET 0x00000000 #define REBOOT_HALT BIT(0) /* Halt instead of rebooting */ #define REBOOT_POWEROFF BIT(1) /* Power off (needs REBOOT_HALT set too) */ void cpu_reboot(int method); +#if defined(_KERNEL) +scret_t sys_reboot(struct syscall_args *scargs); #endif /* _KERNEL */ #endif /* _SYS_REBOOT_H_ */ diff --git a/sys/include/sys/syscall.h b/sys/include/sys/syscall.h index 16c4b17..2223a96 100644 --- a/sys/include/sys/syscall.h +++ b/sys/include/sys/syscall.h @@ -47,6 +47,7 @@ #define SYS_sysctl 6 #define SYS_write 7 #define SYS_spawn 8 +#define SYS_reboot 9 #if defined(_KERNEL) /* Syscall return value and arg type */ |