blob: 65316a76ba6725be2fdd1b1f18911151914539bf [file] [log] [blame]
Elliott Hughes0f461e32014-01-09 10:17:03 -08001/* Generated by gensyscalls.py. Do not edit. */
2
3#include <private/bionic_asm.h>
4
5ENTRY(prlimit64)
6 pushl %ebx
Christopher Ferris15b91e92014-05-29 18:17:09 -07007 .cfi_def_cfa_offset 8
Elliott Hughes0f461e32014-01-09 10:17:03 -08008 .cfi_rel_offset ebx, 0
Christopher Ferris15b91e92014-05-29 18:17:09 -07009 pushl %ecx
10 .cfi_adjust_cfa_offset 4
11 .cfi_rel_offset ecx, 0
12 pushl %edx
13 .cfi_adjust_cfa_offset 4
14 .cfi_rel_offset edx, 0
15 pushl %esi
16 .cfi_adjust_cfa_offset 4
17 .cfi_rel_offset esi, 0
Elliott Hughes0f461e32014-01-09 10:17:03 -080018 mov 20(%esp), %ebx
19 mov 24(%esp), %ecx
20 mov 28(%esp), %edx
21 mov 32(%esp), %esi
22 movl $__NR_prlimit64, %eax
23 int $0x80
24 cmpl $-MAX_ERRNO, %eax
25 jb 1f
26 negl %eax
27 pushl %eax
28 call __set_errno
29 addl $4, %esp
30 orl $-1, %eax
311:
32 popl %esi
33 popl %edx
34 popl %ecx
35 popl %ebx
36 ret
37END(prlimit64)