clarify the purpose of this project
[nyanglibc.git] / nptl / cleanup_compat.shared.s
blob48dd15e70157e7bfe86df4d9b844b2b134c066f7
1 .text
2 .p2align 4,,15
3 .globl _pthread_cleanup_push
4 .type _pthread_cleanup_push, @function
5 _pthread_cleanup_push:
6 movq %rsi, (%rdi)
7 movq %rdx, 8(%rdi)
8 #APP
9 # 31 "cleanup_compat.c" 1
10 movq %fs:760,%rax
11 # 0 "" 2
12 #NO_APP
13 movq %rax, 24(%rdi)
14 #APP
15 # 33 "cleanup_compat.c" 1
16 movq %rdi,%fs:760
17 # 0 "" 2
18 #NO_APP
19 ret
20 .size _pthread_cleanup_push, .-_pthread_cleanup_push
21 .globl __pthread_cleanup_push
22 .hidden __pthread_cleanup_push
23 .set __pthread_cleanup_push,_pthread_cleanup_push
24 .p2align 4,,15
25 .globl _pthread_cleanup_pop
26 .type _pthread_cleanup_pop, @function
27 _pthread_cleanup_pop:
28 movq %rdi, %rax
29 movq 24(%rdi), %rdx
30 #APP
31 # 43 "cleanup_compat.c" 1
32 movq %rdx,%fs:760
33 # 0 "" 2
34 #NO_APP
35 testl %esi, %esi
36 je .L3
37 movq 8(%rdi), %rdi
38 jmp *(%rax)
39 .p2align 4,,10
40 .p2align 3
41 .L3:
42 rep ret
43 .size _pthread_cleanup_pop, .-_pthread_cleanup_pop
44 .globl __pthread_cleanup_pop
45 .hidden __pthread_cleanup_pop
46 .set __pthread_cleanup_pop,_pthread_cleanup_pop