blob: 535a891eef5b57c4c97a4890534ee2d6c32c6a11 [file] [log] [blame]
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08001/* autogenerated by gensyscalls.py */
Elliott Hughes7582a9c2013-02-06 17:08:15 -08002#include <machine/asm.h>
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08003#include <sys/linux-syscalls.h>
4
Elliott Hughes7582a9c2013-02-06 17:08:15 -08005ENTRY(__mmap2)
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
11 pushl %ebp
12 mov 28(%esp), %ebx
13 mov 32(%esp), %ecx
14 mov 36(%esp), %edx
15 mov 40(%esp), %esi
16 mov 44(%esp), %edi
17 mov 48(%esp), %ebp
18 movl $__NR_mmap2, %eax
19 int $0x80
20 cmpl $-129, %eax
21 jb 1f
22 negl %eax
23 pushl %eax
24 call __set_errno
25 addl $4, %esp
26 orl $-1, %eax
271:
28 popl %ebp
29 popl %edi
30 popl %esi
31 popl %edx
32 popl %ecx
33 popl %ebx
34 ret
Elliott Hughes7582a9c2013-02-06 17:08:15 -080035END(__mmap2)