reboot on riscv64

reboot or enable/disable Ctrl-Alt-Del

sys_reboot(int magic1, int magic2, unsigned int cmd, void *arg)
number142 (0x8e)
abicommon
entry pointsys_reboot
sinceLinux 4.15 or earlier (4.15 is the first release scanned for riscv64)
man pagereboot(2)
sourceelixir.bootlin.com

Registers

registervalue
a7142, the syscall number
a0int magic1
a1int magic2
a2unsigned int cmd
a3void *arg
a0the return value

Then run ecall to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/riscv64/reboot