提交 e6cc1d6c 编写于 作者: R Rich Felker

fix initial stack alignment in new threads on x86_64

上级 cbb65af6
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册