blob: 70f284a5625f7a33f62fcb680a5b483f3ea1f388 [file] [log] [blame]
Elliott Hughes103ccde2013-10-16 14:27:59 -07001/* Generated by gensyscalls.py. Do not edit. */
2
Pavel Chupin9a4127b2012-12-12 13:18:50 +04003#include <asm/unistd.h>
4#include <linux/err.h>
5#include <machine/asm.h>
6
Elliott Hughes4906e562013-10-04 14:55:30 -07007ENTRY(__arch_prctl)
Pavel Chupin9a4127b2012-12-12 13:18:50 +04008 movl $__NR_arch_prctl, %eax
9 syscall
10 cmpq $-MAX_ERRNO, %rax
11 jb 1f
12 negl %eax
13 movl %eax, %edi
14 call __set_errno
15 orq $-1, %rax
161:
17 ret
Elliott Hughes4906e562013-10-04 14:55:30 -070018END(__arch_prctl)