clarify the purpose of this project
[nyanglibc.git] / nptl / pthread_mutex_conf.s
blobcb3e530dd56cb96247154894beb79a6adc6eec0a
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 .type __pthread_tunables_init, @function
12 __pthread_tunables_init:
13 subq $24, %rsp
14 leaq _dl_tunable_set_mutex_spin_count(%rip), %rdx
15 movl $27, %edi
16 leaq 12(%rsp), %rsi
17 call __tunable_get_val@PLT
18 addq $24, %rsp
19 ret
20 .size __pthread_tunables_init, .-__pthread_tunables_init
21 .globl __mutex_aconf
22 .data
23 .align 4
24 .type __mutex_aconf, @object
25 .size __mutex_aconf, 4
26 __mutex_aconf:
27 .long 100