clarify the purpose of this project
[nyanglibc.git] / nptl / libc_pthread_init.s
blob5eb651b60be7736f5d8cf7dc9580f351d2894aa9
1 .text
2 .p2align 4,,15
3 .globl __libc_pthread_init
4 .type __libc_pthread_init, @function
5 __libc_pthread_init:
6 subq $8, %rsp
7 movq %rsi, %rdx
8 movq %rdi, __fork_generation_pointer(%rip)
9 xorl %ecx, %ecx
10 xorl %esi, %esi
11 xorl %edi, %edi
12 call __register_atfork
13 leaq __libc_multiple_threads(%rip), %rax
14 addq $8, %rsp
15 ret
16 .size __libc_pthread_init, .-__libc_pthread_init
17 .hidden __fork_generation_pointer
18 .comm __fork_generation_pointer,8,8
19 .hidden __libc_multiple_threads
20 .hidden __register_atfork