projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbb65af
)
fix initial stack alignment in new threads on x86_64
author
Rich Felker
<dalias@aerifal.cx>
Fri, 22 Apr 2011 22:48:57 +0000
(18:48 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Fri, 22 Apr 2011 22:48:57 +0000
(18:48 -0400)
src/thread/x86_64/clone.s
patch
|
blob
|
history
diff --git
a/src/thread/x86_64/clone.s
b/src/thread/x86_64/clone.s
index 3cefd93351ed60092c0baee84dcd5725e0fd131d..e006bccddec4b193ffb3695fbc4f5fd46022cd33 100644
(file)
--- 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 */