]> sourceware.org Git - glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Tue, 4 Mar 2003 19:46:28 +0000 (19:46 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 4 Mar 2003 19:46:28 +0000 (19:46 +0000)
* sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new
clone parameters.

ChangeLog
sysdeps/unix/sysv/linux/x86_64/clone.S

index a01a48ff856df3db1bd11f00a0b18110d4d000ea..f4f02f504d8ebbb1dfb64c1b157c01897a82530c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2003-03-04  Ulrich Drepper  <drepper@redhat.com>
 
+       * sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new
+       clone parameters.
+
        * po/sv.po: Update from translation team.
 
 2003-03-04  Andreas Jaeger  <aj@suse.de>
index 5b3520754d0ea2c24c12e3923694b91ff047378d..c8d7becc756be3cc3915a8d60b54dc55ac03a345 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001,02 Free Software Foundation, Inc.
+/* Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
    the kernel entry is:
    int clone (long flags, void *child_stack).
 
-   The parameters are passed in register from userland:
+   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
 
    The kernel expects:
    rax: system call number
    rdi: flags
-   rsi: child_stack  */
+   rsi: child_stack
+   rdx: TID field in parent
+   r10: TID field in child
+   r8: thread pointer  */
 
 
         .text
@@ -57,11 +63,14 @@ ENTRY (BP_SYM (__clone))
        movq    %rcx,8(%rsi)
 
        /* Save the function pointer.  It will be popped off in the
-       child in the ebx frobbing below.  */
+          child in the ebx frobbing below.  */
        movq    %rdi,0(%rsi)
 
        /* Do the system call.  */
        movq    %rdx, %rdi
+       movq    %r8, %rdx
+       movq    %r9, %r8
+       movq    8(%rsp), %r10
        movq    $SYS_ify(clone),%rax
        syscall
 
This page took 0.051316 seconds and 5 git commands to generate.