blob: c0dad45d903933ab2b5b1b4d1946e91519508da3 [file] [log] [blame]
Elliott Hughes103ccde2013-10-16 14:27:59 -07001/* Generated by gensyscalls.py. Do not edit. */
2
Elliott Hughesed744842013-11-07 10:31:05 -08003#include <private/bionic_asm.h>
Pavel Chupin9a4127b2012-12-12 13:18:50 +04004
Dan Albertbc9f9f22014-08-08 15:19:20 -07005 .hidden __set_errno
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
Dan Albert3726f9c2014-08-08 15:15:29 -070014 call __set_errno
Pavel Chupin9a4127b2012-12-12 13:18:50 +0400151:
16 ret
Elliott Hughes4906e562013-10-04 14:55:30 -070017END(__arch_prctl)
Elliott Hughesd465eb42014-02-19 18:59:19 -080018.hidden __arch_prctl