blob: 94647cabddbba6f2fe7b233a179e527cf8e957a0 [file] [log] [blame]
Elliott Hughes5eccb962013-12-20 16:58:06 -08001#include <private/bionic_asm.h>
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08002
Elliott Hughes5eccb962013-12-20 16:58:06 -08003// int __futex_syscall4(volatile void* ftx, int op, int val, const struct timespec* timeout)
Elliott Hughesd5ed63a2014-05-21 18:27:40 -07004ENTRY_PRIVATE(__futex_syscall4)
David 'Digit' Turner88f06cd2010-03-18 17:13:41 -07005 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
Elliott Hughesbdff26d2013-02-11 17:08:16 -080016END(__futex_syscall4)