clarify the purpose of this project
[nyanglibc.git] / rt / aio_error.s
blob96694f8f7ab3d30a831adb3f62c53e632092a295
1 .text
2 .p2align 4,,15
3 .globl aio_error
4 .type aio_error, @function
5 aio_error:
6 pushq %rbx
7 movq %rdi, %rbx
8 leaq __aio_requests_mutex(%rip), %rdi
9 call pthread_mutex_lock@PLT
10 movl 112(%rbx), %ebx
11 leaq __aio_requests_mutex(%rip), %rdi
12 call pthread_mutex_unlock@PLT
13 movl %ebx, %eax
14 popq %rbx
15 ret
16 .size aio_error, .-aio_error
17 .weak aio_error64
18 .set aio_error64,aio_error