syscall.sh / parisc / getcpu

getcpu

determine CPU and NUMA node on which the calling thread is running

sys_getcpu(unsigned *cpup, unsigned *nodep, void *unused)
number296 (0x128)
abicommon
entry pointsys_getcpu
sinceLinux 5.0
man pagegetcpu(2)
sourceelixir.bootlin.com

Registers

registervalue
r20296, the syscall number
r26unsigned *cpup
r25unsigned *nodep
r24void *unused
r28the return value

Then run ble 0x100(%sr2, %r0) to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/parisc/getcpu