blob: 94647cabddbba6f2fe7b233a179e527cf8e957a0 [file] [log] [blame]
Narayan Kamath75c55ff2014-05-28 18:02:33 +00001#include <private/bionic_asm.h>
2
3// int __futex_syscall4(volatile void* ftx, int op, int val, const struct timespec* timeout)
4ENTRY_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
16END(__futex_syscall4)