Narayan Kamath | 75c55ff | 2014-05-28 18:02:33 +0000 | [diff] [blame] | 1 | #include <private/bionic_asm.h> |
2 | |||||
3 | // int __futex_syscall4(volatile void* ftx, int op, int val, const struct timespec* timeout) | ||||
4 | ENTRY_PRIVATE(__futex_syscall4) | ||||
5 | pushl %ebx | ||||
6 | pushl %esi | ||||
7 | movl 12(%esp), %ebx /* ftx */ | ||||
8 | movl 16(%esp), %ecx /* op */ | ||||
9 | movl 20(%esp), %edx /* val */ | ||||
10 | movl 24(%esp), %esi /* timeout */ | ||||
11 | movl $__NR_futex, %eax | ||||
12 | int $0x80 | ||||
13 | popl %esi | ||||
14 | popl %ebx | ||||
15 | ret | ||||
16 | END(__futex_syscall4) |