Elliott Hughes | 877ec6d | 2013-11-15 17:40:18 -0800 | [diff] [blame] | 1 | /* Generated by gensyscalls.py. Do not edit. */ |
| 2 | |
| 3 | #include <asm/unistd.h> |
Elliott Hughes | eae27dc | 2014-02-19 12:20:00 -0800 | [diff] [blame^] | 4 | #include <machine/asm.h> |
| 5 | #include <machine/regdef.h> |
Elliott Hughes | 877ec6d | 2013-11-15 17:40:18 -0800 | [diff] [blame] | 6 | .text |
| 7 | .globl __set_tid_address |
| 8 | .align 4 |
| 9 | .ent __set_tid_address |
| 10 | |
| 11 | __set_tid_address: |
| 12 | .set noreorder |
Elliott Hughes | eae27dc | 2014-02-19 12:20:00 -0800 | [diff] [blame^] | 13 | .cpload t9 |
| 14 | li v0, __NR_set_tid_address |
Elliott Hughes | 877ec6d | 2013-11-15 17:40:18 -0800 | [diff] [blame] | 15 | syscall |
Elliott Hughes | eae27dc | 2014-02-19 12:20:00 -0800 | [diff] [blame^] | 16 | bnez a3, 1f |
| 17 | move a0, v0 |
| 18 | j ra |
Elliott Hughes | 877ec6d | 2013-11-15 17:40:18 -0800 | [diff] [blame] | 19 | nop |
| 20 | 1: |
Elliott Hughes | eae27dc | 2014-02-19 12:20:00 -0800 | [diff] [blame^] | 21 | la t9,__set_errno |
| 22 | j t9 |
Elliott Hughes | 877ec6d | 2013-11-15 17:40:18 -0800 | [diff] [blame] | 23 | nop |
| 24 | .set reorder |
| 25 | .end __set_tid_address |