__arch_prctl.S revision d465eb4e76c24b1e782438a4c9e2c9abc20fe66c
1/* Generated by gensyscalls.py. Do not edit. */
2
3#include <private/bionic_asm.h>
4
5ENTRY(__arch_prctl)
6    movl    $__NR_arch_prctl, %eax
7    syscall
8    cmpq    $-MAX_ERRNO, %rax
9    jb      1f
10    negl    %eax
11    movl    %eax, %edi
12    call    __set_errno
13    orq     $-1, %rax
141:
15    ret
16END(__arch_prctl)
17.hidden __arch_prctl
18