Elliott Hughes | 103ccde | 2013-10-16 14:27:59 -0700 | [diff] [blame] | 1 | /* Generated by gensyscalls.py. Do not edit. */ |
2 | |||||
Elliott Hughes | 5c2772f | 2013-03-21 22:15:06 -0700 | [diff] [blame] | 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> | ||||
Raghu Gandham | 1fa0d84 | 2012-01-27 17:51:42 -0800 | [diff] [blame] | 6 | .text |
7 | .globl getdents | ||||
8 | .align 4 | ||||
9 | .ent getdents | ||||
10 | |||||
11 | getdents: | ||||
12 | .set noreorder | ||||
Elliott Hughes | eae27dc | 2014-02-19 12:20:00 -0800 | [diff] [blame] | 13 | .cpload t9 |
14 | li v0, __NR_getdents64 | ||||
Raghu Gandham | 1fa0d84 | 2012-01-27 17:51:42 -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 | ||||
Raghu Gandham | 1fa0d84 | 2012-01-27 17:51:42 -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 | ||||
Raghu Gandham | 1fa0d84 | 2012-01-27 17:51:42 -0800 | [diff] [blame] | 23 | nop |
24 | .set reorder | ||||
25 | .end getdents |