settimeofday on arm64

get / set time

sys_settimeofday(struct __kernel_old_timeval *tv, struct timezone *tz)
number170 (0xaa)
abi64
entry pointsys_settimeofday
sinceLinux 3.7 or earlier (3.7 is the first release scanned for arm64)
man pagesettimeofday(2)
sourceelixir.bootlin.com

Registers

registervalue
x8170, the syscall number
x0struct __kernel_old_timeval *tv
x1struct timezone *tz
x0the return value

Then run svc #0 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/arm64/settimeofday