San Mehat | 75c5e25 | 2010-02-23 15:55:29 -0800 | [diff] [blame] | 1 | /* autogenerated by gensyscalls.py */ |
Elliott Hughes | 9aceab5 | 2013-03-12 14:57:30 -0700 | [diff] [blame] | 2 | #include <linux/err.h> |
Elliott Hughes | 7582a9c | 2013-02-06 17:08:15 -0800 | [diff] [blame] | 3 | #include <machine/asm.h> |
Elliott Hughes | 5c2772f | 2013-03-21 22:15:06 -0700 | [diff] [blame] | 4 | #include <asm/unistd.h> |
San Mehat | 75c5e25 | 2010-02-23 15:55:29 -0800 | [diff] [blame] | 5 | |
Elliott Hughes | 7582a9c | 2013-02-06 17:08:15 -0800 | [diff] [blame] | 6 | ENTRY(ioprio_get) |
San Mehat | 75c5e25 | 2010-02-23 15:55:29 -0800 | [diff] [blame] | 7 | pushl %ebx |
8 | pushl %ecx | ||||
9 | mov 12(%esp), %ebx | ||||
10 | mov 16(%esp), %ecx | ||||
11 | movl $__NR_ioprio_get, %eax | ||||
12 | int $0x80 | ||||
Elliott Hughes | 9aceab5 | 2013-03-12 14:57:30 -0700 | [diff] [blame] | 13 | cmpl $-MAX_ERRNO, %eax |
San Mehat | 75c5e25 | 2010-02-23 15:55:29 -0800 | [diff] [blame] | 14 | jb 1f |
15 | negl %eax | ||||
16 | pushl %eax | ||||
17 | call __set_errno | ||||
18 | addl $4, %esp | ||||
19 | orl $-1, %eax | ||||
20 | 1: | ||||
21 | popl %ecx | ||||
22 | popl %ebx | ||||
23 | ret | ||||
Elliott Hughes | 7582a9c | 2013-02-06 17:08:15 -0800 | [diff] [blame] | 24 | END(ioprio_get) |