syscall.sh / parisc / gettimeofday
gettimeofday
get / set time
sys_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz)
| number | 78 (0x4e) |
|---|---|
| abi | common |
| entry point | sys_gettimeofday |
| since | Linux 5.0 |
| man page | gettimeofday(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r20 | 78, the syscall number |
r26 | struct __kernel_old_timeval *tv |
r25 | struct timezone *tz |
r28 | the return value |
Then run ble 0x100(%sr2, %r0) to enter the kernel.
Same syscall on other architectures
- x64 96
- x86 78
- arm64 169
- arm 78
- riscv64 169
- x32 1073741920
- loongarch64 169
- ppc64 78
- ppc 78
- s390x 78
- mips64 5094
- mipsn32 6094
- mipso32 4078
- alpha 359
- arc 169
- csky 169
- hexagon 169
- m68k 78
- microblaze 78
- nios2 169
- openrisc 169
- sh 78
- sparc 116
- sparc64 116
- xtensa 192
Get this as JSON: https://api.syscall.sh/v2/syscalls/parisc/gettimeofday