blob: 984a67e1afc8f0151169f520dc152ad0034c3de0 [file] [log] [blame]
Elliott Hughes103ccde2013-10-16 14:27:59 -07001/* Generated by gensyscalls.py. Do not edit. */
2
Elliott Hughesed744842013-11-07 10:31:05 -08003#include <private/bionic_asm.h>
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08004
Elliott Hughes11952072013-10-24 15:15:14 -07005ENTRY(__pselect6)
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08006 pushl %ebx
7 pushl %ecx
8 pushl %edx
9 pushl %esi
10 pushl %edi
Elliott Hughes11952072013-10-24 15:15:14 -070011 pushl %ebp
Christopher Ferrise4bc7562014-01-06 16:39:10 -080012 .cfi_def_cfa_offset 24
13 .cfi_rel_offset ebx, 0
14 .cfi_rel_offset ecx, 4
15 .cfi_rel_offset edx, 8
16 .cfi_rel_offset esi, 12
17 .cfi_rel_offset edi, 16
18 .cfi_rel_offset ebp, 20
Elliott Hughes11952072013-10-24 15:15:14 -070019 mov 28(%esp), %ebx
20 mov 32(%esp), %ecx
21 mov 36(%esp), %edx
22 mov 40(%esp), %esi
23 mov 44(%esp), %edi
24 mov 48(%esp), %ebp
25 movl $__NR_pselect6, %eax
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080026 int $0x80
Elliott Hughes9aceab52013-03-12 14:57:30 -070027 cmpl $-MAX_ERRNO, %eax
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080028 jb 1f
29 negl %eax
30 pushl %eax
31 call __set_errno
32 addl $4, %esp
33 orl $-1, %eax
341:
Elliott Hughes11952072013-10-24 15:15:14 -070035 popl %ebp
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080036 popl %edi
37 popl %esi
38 popl %edx
39 popl %ecx
40 popl %ebx
41 ret
Elliott Hughes11952072013-10-24 15:15:14 -070042END(__pselect6)