blob: 29703e86e531513af7d959e0a4da77c4c67170bb [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(getpid)
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08006 movl $__NR_getpid, %eax
7 int $0x80
8 cmpl $-129, %eax
9 jb 1f
10 negl %eax
11 pushl %eax
12 call __set_errno
13 addl $4, %esp
14 orl $-1, %eax
151:
16 ret
Elliott Hughes7582a9c2013-02-06 17:08:15 -080017END(getpid)