syscall.sh / microblaze / clone

clone

create a child process

sys_clone(unsigned long clone_flags, unsigned long newsp, int stack_size, int *parent_tidptr, int *child_tidptr, unsigned long tls)
number120 (0x78)
abicommon
entry pointsys_clone
sinceLinux 5.0
man pageclone(2)
sourceelixir.bootlin.com

Registers

registervalue
r12120, the syscall number
r5unsigned long clone_flags
r6unsigned long newsp
r7int stack_size
r8int *parent_tidptr
r9int *child_tidptr
r10unsigned long tls
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/clone