# Load system call arguments into registers.
movl 16(%esp), %ebx # cl_args
movl 20(%esp), %ecx # size
# The child stack pointer accessed through `cl_args` points to the top
# of the memory region. Rather than duplicate the kernel's stack
# alignment we will store the values in register that won't be
# clobbered by the system call and then push them onto the child stack
# before calling __start_thread.
movl 24(%esp), %esi # Copy 'fn'.
movl 28(%esp), %edi # Copy 'arg'.
# Make the system call.
movl $__NR_clone3, %eax
int $0x80
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.