syscall.sh / microblaze / dup2

dup2

duplicate a file descriptor

sys_dup2(unsigned int oldfd, unsigned int newfd)
number63 (0x3f)
abicommon
entry pointsys_dup2
sinceLinux 5.0
man pagedup2(2)
sourceelixir.bootlin.com

Registers

registervalue
r1263, the syscall number
r5unsigned int oldfd
r6unsigned int newfd
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/dup2