blob: 830c99ff0edfeb7e98763d74e4e210f665aa3542 [file] [log] [blame]
Andrei Popescueb9d5ed2010-02-25 13:27:46 +00001/* autogenerated by gensyscalls.py */
Elliott Hughes7582a9c2013-02-06 17:08:15 -08002#include <machine/asm.h>
Andrei Popescueb9d5ed2010-02-25 13:27:46 +00003#include <sys/linux-syscalls.h>
4
Elliott Hughes7582a9c2013-02-06 17:08:15 -08005ENTRY(sigaltstack)
Andrei Popescueb9d5ed2010-02-25 13:27:46 +00006 pushl %ebx
7 pushl %ecx
8 mov 12(%esp), %ebx
9 mov 16(%esp), %ecx
10 movl $__NR_sigaltstack, %eax
11 int $0x80
12 cmpl $-129, %eax
13 jb 1f
14 negl %eax
15 pushl %eax
16 call __set_errno
17 addl $4, %esp
18 orl $-1, %eax
191:
20 popl %ecx
21 popl %ebx
22 ret
Elliott Hughes7582a9c2013-02-06 17:08:15 -080023END(sigaltstack)