blob: ac51316bc92d4f15287cf014d30a42c2e19e1f3a [file] [log] [blame]
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08001/* autogenerated by gensyscalls.py */
2#include <sys/linux-syscalls.h>
3
4 .text
5 .type futex, @function
6 .globl futex
7 .align 4
8
9futex:
10 pushl %ebx
11 pushl %ecx
12 pushl %edx
13 pushl %esi
14 pushl %edi
15 pushl %ebp
16 mov 28(%esp), %ebx
17 mov 32(%esp), %ecx
18 mov 36(%esp), %edx
19 mov 40(%esp), %esi
20 mov 44(%esp), %edi
21 mov 48(%esp), %ebp
22 movl $__NR_futex, %eax
23 int $0x80
24 cmpl $-129, %eax
25 jb 1f
26 negl %eax
27 pushl %eax
28 call __set_errno
29 addl $4, %esp
30 orl $-1, %eax
311:
32 popl %ebp
33 popl %edi
34 popl %esi
35 popl %edx
36 popl %ecx
37 popl %ebx
38 ret