Elliott Hughes | 877ec6d | 2013-11-15 17:40:18 -0800 | [diff] [blame] | 1 | /* Generated by gensyscalls.py. Do not edit. */ |
| 2 | |
| 3 | #include <private/bionic_asm.h> |
| 4 | |
Dan Albert | e35fd48 | 2014-08-08 15:19:20 -0700 | [diff] [blame] | 5 | .hidden __set_errno |
| 6 | |
Elliott Hughes | 877ec6d | 2013-11-15 17:40:18 -0800 | [diff] [blame] | 7 | ENTRY(__set_tid_address) |
| 8 | pushl %ebx |
Christopher Ferris | 15b91e9 | 2014-05-29 18:17:09 -0700 | [diff] [blame] | 9 | .cfi_def_cfa_offset 8 |
Christopher Ferris | e4bc756 | 2014-01-06 16:39:10 -0800 | [diff] [blame] | 10 | .cfi_rel_offset ebx, 0 |
Elliott Hughes | 877ec6d | 2013-11-15 17:40:18 -0800 | [diff] [blame] | 11 | 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 Hughes | 877ec6d | 2013-11-15 17:40:18 -0800 | [diff] [blame] | 20 | 1: |
| 21 | popl %ebx |
| 22 | ret |
| 23 | END(__set_tid_address) |