diff options
author | Ian Moffett <ian@osmora.org> | 2025-05-19 01:01:11 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-05-19 01:01:11 -0400 |
commit | ffa5a3c2dd4eb887821699ba434cbb6eb93b23b8 (patch) | |
tree | 39fa351b199cfff93b605cbf5e4bdd3b486480b3 /sys/arch/amd64 | |
parent | 5138d871202317c7432549b1ac663f26eb3a8759 (diff) |
kernel: syscall: Add SYS_reboot syscall
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r-- | sys/arch/amd64/amd64/reboot.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/arch/amd64/amd64/reboot.c b/sys/arch/amd64/amd64/reboot.c index 64db09e..d47a352 100644 --- a/sys/arch/amd64/amd64/reboot.c +++ b/sys/arch/amd64/amd64/reboot.c @@ -50,3 +50,13 @@ cpu_reboot(int method) outb(0x64, 0xFE); } } + +/* + * arg0: Method bits + */ +scret_t +sys_reboot(struct syscall_args *scargs) +{ + cpu_reboot(scargs->arg0); + __builtin_unreachable(); +} |