about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-04-22 18:48:57 -0400
committerRich Felker <dalias@aerifal.cx>2011-04-22 18:48:57 -0400
commite6cc1d6c0e66970c7445df4f16a729f019d30efd (patch)
treea0222a756b325a2e910aebad3cb58f4f3898a78c
parentcbb65af6ae2fd129102e2cc27e29d23df7580c97 (diff)
downloadmusl-e6cc1d6c0e66970c7445df4f16a729f019d30efd.tar.gz
musl-e6cc1d6c0e66970c7445df4f16a729f019d30efd.tar.xz
musl-e6cc1d6c0e66970c7445df4f16a729f019d30efd.zip
fix initial stack alignment in new threads on x86_64
-rw-r--r--src/thread/x86_64/clone.s2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread/x86_64/clone.s b/src/thread/x86_64/clone.s
index 3cefd933..e006bccd 100644
--- a/src/thread/x86_64/clone.s
+++ b/src/thread/x86_64/clone.s
@@ -5,7 +5,7 @@
 /* rdi = child_stack, rsi = start, rdx = pthread_struct */
 __uniclone:
         subq    $8,%rsp         /* pad parent stack to prevent branch later */
-        subq    $16,%rdi        /* grow child_stack */
+        subq    $24,%rdi        /* grow child_stack */
         mov     %rsi,8(%rdi)    /* push start onto child_stack as return ptr */
         mov     %rdx,0(%rdi)    /* push pthread_struct onto child_stack */
         mov     %rdx,%r8        /* r8 = tls */