Jeff Brown | 10c8ce5 | 2011-11-18 15:17:07 -0800 | [diff] [blame] | 1 | /* autogenerated by gensyscalls.py */ |
Elliott Hughes | e4ffd9f | 2013-10-01 13:29:43 -0700 | [diff] [blame^] | 2 | #include <asm/unistd.h> |
Elliott Hughes | 9aceab5 | 2013-03-12 14:57:30 -0700 | [diff] [blame] | 3 | #include <linux/err.h> |
Elliott Hughes | 7582a9c | 2013-02-06 17:08:15 -0800 | [diff] [blame] | 4 | #include <machine/asm.h> |
Jeff Brown | 10c8ce5 | 2011-11-18 15:17:07 -0800 | [diff] [blame] | 5 | |
Elliott Hughes | 7582a9c | 2013-02-06 17:08:15 -0800 | [diff] [blame] | 6 | ENTRY(tgkill) |
Jeff Brown | 10c8ce5 | 2011-11-18 15:17:07 -0800 | [diff] [blame] | 7 | pushl %ebx |
8 | pushl %ecx | ||||
9 | pushl %edx | ||||
10 | mov 16(%esp), %ebx | ||||
11 | mov 20(%esp), %ecx | ||||
12 | mov 24(%esp), %edx | ||||
13 | movl $__NR_tgkill, %eax | ||||
14 | int $0x80 | ||||
Elliott Hughes | 9aceab5 | 2013-03-12 14:57:30 -0700 | [diff] [blame] | 15 | cmpl $-MAX_ERRNO, %eax |
Jeff Brown | 10c8ce5 | 2011-11-18 15:17:07 -0800 | [diff] [blame] | 16 | jb 1f |
17 | negl %eax | ||||
18 | pushl %eax | ||||
19 | call __set_errno | ||||
20 | addl $4, %esp | ||||
21 | orl $-1, %eax | ||||
22 | 1: | ||||
23 | popl %edx | ||||
24 | popl %ecx | ||||
25 | popl %ebx | ||||
26 | ret | ||||
Elliott Hughes | 7582a9c | 2013-02-06 17:08:15 -0800 | [diff] [blame] | 27 | END(tgkill) |