2.9
[glibc/nacl-glibc.git] / sysdeps / unix / sysv / linux / i386 / call_pselect6.S
bloba356f1dfa9a4a1ae4fb80c3de34313c6bab23bce
1 /* Copyright (C) 2006 Free Software Foundation, Inc.
2    This file is part of the GNU C Library.
3    Contributed by Ulrich Drepper <drepper@redhat.com>, 2006.
5    The GNU C Library is free software; you can redistribute it and/or
6    modify it under the terms of the GNU Lesser General Public
7    License as published by the Free Software Foundation; either
8    version 2.1 of the License, or (at your option) any later version.
10    The GNU C Library is distributed in the hope that it will be useful,
11    but WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13    Lesser General Public License for more details.
15    You should have received a copy of the GNU Lesser General Public
16    License along with the GNU C Library; if not, write to the Free
17    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
18    02111-1307 USA.  */
20 #include <sysdep.h>
22 #ifdef __NR_pselect6
23         .text
24 ENTRY(__call_pselect6)
25         .hidden __call_pselect6
26         pushl   %ebx
27         cfi_adjust_cfa_offset (4)
28         pushl   %esi
29         cfi_adjust_cfa_offset (4)
30         pushl   %edi
31         cfi_adjust_cfa_offset (4)
32         pushl   %ebp
33         cfi_adjust_cfa_offset (4)
34         cfi_rel_offset (ebp, 0)
35         cfi_rel_offset (edi, 4)
36         cfi_rel_offset (esi, 8)
37         cfi_rel_offset (ebx, 12)
39         movl    $__NR_pselect6, %eax
40         movl    20(%esp), %ebx
41         movl    24(%esp), %ecx
42         movl    28(%esp), %edx
43         movl    32(%esp), %esi
44         movl    36(%esp), %edi
45         movl    40(%esp), %ebp
47         /* The syscall handling cannot handle 6 parameters.  Yet.  */
48         int     $0x80
50         popl    %ebp
51         cfi_adjust_cfa_offset (-4)
52         cfi_restore (ebp)
53         popl    %edi
54         cfi_adjust_cfa_offset (-4)
55         cfi_restore (edi)
56         popl    %esi
57         cfi_adjust_cfa_offset (-4)
58         cfi_restore (esi)
59         popl    %ebx
60         cfi_adjust_cfa_offset (-4)
61         cfi_restore (ebx)
63         ret
64 END(__call_pselect6)
65 #endif