]> sourceware.org Git - glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Wed, 17 Sep 2003 08:02:17 +0000 (08:02 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 17 Sep 2003 08:02:17 +0000 (08:02 +0000)
2003-09-17  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/unix/sysv/linux/i386/clone.S: Make sure child gets a
stack which is aligned (mod 16).

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

index 728fe1da8b7f00b59452b400b7a63dcabed81cfe..cda4f87fea3d861a5f5749d0b11ce0fc4f94cf41 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-09-17  Ulrich Drepper  <drepper@redhat.com>
+
+       * sysdeps/unix/sysv/linux/i386/clone.S: Make sure child gets a
+       stack which is aligned (mod 16).
+
 2003-09-17  Uwe Reimann  <Uwe_Reimann@gmx.net>
            Hans-Peter Nilsson  <hp@axis.com>
 
index 1f7417effdaa7fab06a65bb21fc858bea3dfc25e..94c6a72548f64d1274c8f3f76021e9d184484533 100644 (file)
@@ -61,8 +61,10 @@ ENTRY (BP_SYM (__clone))
        jz      SYSCALL_ERROR_LABEL
 #endif
 
-       /* Insert the argument onto the new stack.  */
-       subl    $16,%ecx
+       /* Insert the argument onto the new stack.  Make sure the new
+          thread is started with an alignment of (mod 16).  */
+       andl    $0xfffffff0, %ecx
+       subl    $24,%ecx
        movl    ARG(%esp),%eax          /* no negative argument counts */
        movl    %eax,12(%ecx)
 
This page took 0.057658 seconds and 5 git commands to generate.