]> sourceware.org Git - glibc.git/commitdiff
x86_64/clone.S: Upate comments
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 13 Feb 2021 19:46:38 +0000 (11:46 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 22 Feb 2021 12:30:38 +0000 (04:30 -0800)
sysdeps/unix/sysv/linux/x86_64/clone.S

index 51638d897b791a725021fa717888b8c1c90bbfc4..31ac12da0cc08a934d514fed1de9eba1cb3e8ec5 100644 (file)
 #include <asm-syntax.h>
 
 /* The userland implementation is:
-   int clone (int (*fn)(void *arg), void *child_stack, int flags, void *arg),
+   int clone (int (*fn)(void *arg), void *child_stack, int flags,
+             void *arg, pid_t *parent_tid, void *tls, pid_t *child_tid);
    the kernel entry is:
-   int clone (long flags, void *child_stack).
+   int clone (long flags, void *child_stack, pid_t *parent_tid,
+             pid_t *child_tid, void *tls);
 
    The parameters are passed in register and on the stack from userland:
    rdi: fn
    rsi: child_stack
    rdx:        flags
    rcx: arg
-   r8d:        TID field in parent
-   r9d: thread pointer
-%esp+8:        TID field in child
+    r8:        TID field in parent
+    r9: thread pointer
+%rsp+8:        TID field in child
 
    The kernel expects:
    rax: system call number
@@ -60,7 +62,7 @@ ENTRY (__clone)
        movq    %rcx,8(%rsi)
 
        /* Save the function pointer.  It will be popped off in the
-          child in the ebx frobbing below.  */
+          child.  */
        movq    %rdi,0(%rsi)
 
        /* Do the system call.  */
This page took 0.047155 seconds and 5 git commands to generate.