blob: 84634b4950932d682f53a3277890cd8b997dcf19 [file] [log] [blame]
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08001/* autogenerated by gensyscalls.py */
Elliott Hughese4ffd9f2013-10-01 13:29:43 -07002#include <asm/unistd.h>
Elliott Hughes9aceab52013-03-12 14:57:30 -07003#include <linux/err.h>
Elliott Hughes7582a9c2013-02-06 17:08:15 -08004#include <machine/asm.h>
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08005
Elliott Hughes40d105c2013-10-16 12:53:58 -07006ENTRY(__rt_sigpending)
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08007 pushl %ebx
Elliott Hughes40d105c2013-10-16 12:53:58 -07008 pushl %ecx
9 mov 12(%esp), %ebx
10 mov 16(%esp), %ecx
11 movl $__NR_rt_sigpending, %eax
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080012 int $0x80
Elliott Hughes9aceab52013-03-12 14:57:30 -070013 cmpl $-MAX_ERRNO, %eax
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080014 jb 1f
15 negl %eax
16 pushl %eax
17 call __set_errno
18 addl $4, %esp
19 orl $-1, %eax
201:
Elliott Hughes40d105c2013-10-16 12:53:58 -070021 popl %ecx
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080022 popl %ebx
23 ret
Elliott Hughes40d105c2013-10-16 12:53:58 -070024END(__rt_sigpending)