clarify the purpose of this project
[nyanglibc.git] / nptl / cleanup_compat.s
blob29b26650abbafd9a5f21e6037c4877abf16d8bfc
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 .set __pthread_cleanup_push,_pthread_cleanup_push
23 .p2align 4,,15
24 .globl _pthread_cleanup_pop
25 .type _pthread_cleanup_pop, @function
26 _pthread_cleanup_pop:
27 movq %rdi, %rax
28 movq 24(%rdi), %rdx
29 #APP
30 # 43 "cleanup_compat.c" 1
31 movq %rdx,%fs:760
32 # 0 "" 2
33 #NO_APP
34 testl %esi, %esi
35 je .L3
36 movq 8(%rdi), %rdi
37 jmp *(%rax)
38 .p2align 4,,10
39 .p2align 3
40 .L3:
41 rep ret
42 .size _pthread_cleanup_pop, .-_pthread_cleanup_pop
43 .globl __pthread_cleanup_pop
44 .set __pthread_cleanup_pop,_pthread_cleanup_pop