clarify the purpose of this project
[nyanglibc.git] / nptl / pthread_mutex_conf.shared.s
blobaa4ef93c08ef22957156d12d65dd842f2b04560b
1 .text
2 .p2align 4,,15
3 .type _dl_tunable_set_mutex_spin_count, @function
4 _dl_tunable_set_mutex_spin_count:
5 movq (%rdi), %rax
6 movl %eax, __mutex_aconf(%rip)
7 ret
8 .size _dl_tunable_set_mutex_spin_count, .-_dl_tunable_set_mutex_spin_count
9 .p2align 4,,15
10 .globl __pthread_tunables_init
11 .hidden __pthread_tunables_init
12 .type __pthread_tunables_init, @function
13 __pthread_tunables_init:
14 subq $24, %rsp
15 leaq _dl_tunable_set_mutex_spin_count(%rip), %rdx
16 movl $27, %edi
17 leaq 12(%rsp), %rsi
18 call __tunable_get_val@PLT
19 addq $24, %rsp
20 ret
21 .size __pthread_tunables_init, .-__pthread_tunables_init
22 .hidden __mutex_aconf
23 .globl __mutex_aconf
24 .data
25 .align 4
26 .type __mutex_aconf, @object
27 .size __mutex_aconf, 4
28 __mutex_aconf:
29 .long 100