syscall.sh / arc / reboot

reboot

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 3.9
man pagereboot(2)
sourceelixir.bootlin.com

Registers

registervalue
r8142, the syscall number
r0int magic1
r1int magic2
r2unsigned int cmd
r3void *arg
r0the return value

Then run trap0 to enter the kernel.

Same syscall on other architectures

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