blob: 43bfa508b6718f9aebaaf229b377e83f2f66ccb5 [file] [log] [blame]
David 'Digit' Turner72e6fd42010-12-03 18:04:01 +01001/* autogenerated by gensyscalls.py */
2#include <sys/linux-syscalls.h>
3
4 .text
5 .type __sched_getaffinity, @function
6 .globl __sched_getaffinity
7 .align 4
8
9__sched_getaffinity:
10 pushl %ebx
11 pushl %ecx
12 pushl %edx
13 mov 16(%esp), %ebx
14 mov 20(%esp), %ecx
15 mov 24(%esp), %edx
16 movl $__NR_sched_getaffinity, %eax
17 int $0x80
18 cmpl $-129, %eax
19 jb 1f
20 negl %eax
21 pushl %eax
22 call __set_errno
23 addl $4, %esp
24 orl $-1, %eax
251:
26 popl %edx
27 popl %ecx
28 popl %ebx
29 ret