syscall.sh / microblaze / getcwd

getcwd

get current working directory

sys_getcwd(char *buf, unsigned long size)
number183 (0xb7)
abicommon
entry pointsys_getcwd
sinceLinux 5.0
man pagegetcwd(2)
sourceelixir.bootlin.com

Registers

registervalue
r12183, the syscall number
r5char *buf
r6unsigned long size
r3the return value

Then run brki r14,8 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/microblaze/getcwd