Pavel Chupin | 9a4127b | 2012-12-12 13:18:50 +0400 | [diff] [blame] | 1 | /* autogenerated by gensyscalls.py */ |
2 | #include <asm/unistd.h> | ||||
3 | #include <linux/err.h> | ||||
4 | #include <machine/asm.h> | ||||
5 | |||||
Elliott Hughes | 4906e56 | 2013-10-04 14:55:30 -0700 | [diff] [blame^] | 6 | ENTRY(__arch_prctl) |
Pavel Chupin | 9a4127b | 2012-12-12 13:18:50 +0400 | [diff] [blame] | 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 | ||||
15 | 1: | ||||
16 | ret | ||||
Elliott Hughes | 4906e56 | 2013-10-04 14:55:30 -0700 | [diff] [blame^] | 17 | END(__arch_prctl) |