blob: eaf9494d0a0ad06c526a96277b70e6ee3cb271e8 [file] [log] [blame]
Pavel Chupin9a4127b2012-12-12 13:18:50 +04001/* autogenerated by gensyscalls.py */
2#include <asm/unistd.h>
3#include <linux/err.h>
4#include <machine/asm.h>
5
6ENTRY(arch_prctl)
7 movl $__NR_arch_prctl, %eax
8 syscall
9 cmpq $-MAX_ERRNO, %rax
10 jb 1f
11 negl %eax
12 movl %eax, %edi
13 call __set_errno
14 orq $-1, %rax
151:
16 ret
17END(arch_prctl)