| Elliott Hughes | 103ccde | 2013-10-16 14:27:59 -0700 | [diff] [blame] | 1 | /* Generated by gensyscalls.py. Do not edit. */ |
| 2 | |||||
| Elliott Hughes | ed74484 | 2013-11-07 10:31:05 -0800 | [diff] [blame] | 3 | #include <private/bionic_asm.h> |
| Pavel Chupin | 9a4127b | 2012-12-12 13:18:50 +0400 | [diff] [blame] | 4 | |
| Elliott Hughes | 4906e56 | 2013-10-04 14:55:30 -0700 | [diff] [blame] | 5 | ENTRY(__arch_prctl) |
| Pavel Chupin | 9a4127b | 2012-12-12 13:18:50 +0400 | [diff] [blame] | 6 | movl $__NR_arch_prctl, %eax |
| 7 | syscall | ||||
| 8 | cmpq $-MAX_ERRNO, %rax | ||||
| 9 | jb 1f | ||||
| 10 | negl %eax | ||||
| 11 | movl %eax, %edi | ||||
| Elliott Hughes | 7efad83 | 2014-09-08 15:25:01 -0700 | [diff] [blame] | 12 | call __set_errno_internal |
| Pavel Chupin | 9a4127b | 2012-12-12 13:18:50 +0400 | [diff] [blame] | 13 | 1: |
| 14 | ret | ||||
| Elliott Hughes | 4906e56 | 2013-10-04 14:55:30 -0700 | [diff] [blame] | 15 | END(__arch_prctl) |
| Elliott Hughes | d465eb4 | 2014-02-19 18:59:19 -0800 | [diff] [blame] | 16 | .hidden __arch_prctl |