Correctly set up TLS on Redox and other fixes for pthread_clone

This commit is contained in:
Jeremy Soller
2019-04-14 19:08:58 -06:00
parent 7fe0beb916
commit 30aef27c76
6 changed files with 99 additions and 51 deletions
+9 -2
View File
@@ -343,9 +343,16 @@ impl Pal for Sys {
test rax, rax
jnz .parent
# Call entry point
pop rdi
# Load registers
pop rax
pop rdi
pop rsi
pop rdx
pop rcx
pop r8
pop r9
# Call entry point
call rax
# Exit