blob: 35174427f989e7abb31ec0f4a44adac6c726e208 [file] [log] [blame]
Elliott Hughes877ec6d2013-11-15 17:40:18 -08001/* Generated by gensyscalls.py. Do not edit. */
2
3#include <private/bionic_asm.h>
4
Dan Alberte35fd482014-08-08 15:19:20 -07005 .hidden __set_errno
6
Elliott Hughes877ec6d2013-11-15 17:40:18 -08007ENTRY(__set_tid_address)
8 pushl %ebx
Christopher Ferris15b91e92014-05-29 18:17:09 -07009 .cfi_def_cfa_offset 8
Christopher Ferrise4bc7562014-01-06 16:39:10 -080010 .cfi_rel_offset ebx, 0
Elliott Hughes877ec6d2013-11-15 17:40:18 -080011 mov 8(%esp), %ebx
12 movl $__NR_set_tid_address, %eax
13 int $0x80
14 cmpl $-MAX_ERRNO, %eax
15 jb 1f
16 negl %eax
17 pushl %eax
18 call __set_errno
19 addl $4, %esp
Elliott Hughes877ec6d2013-11-15 17:40:18 -0800201:
21 popl %ebx
22 ret
23END(__set_tid_address)