Chris Dearman | 5043212 | 2014-02-05 16:59:23 -0800 | [diff] [blame] | 1 | /* Generated by gensyscalls.py. Do not edit. */ |
| 2 | |
| 3 | #include <asm/unistd.h> |
| 4 | #include <machine/asm.h> |
| 5 | #include <machine/regdef.h> |
| 6 | .text |
Elliott Hughes | db1ea34 | 2014-01-17 18:42:49 -0800 | [diff] [blame^] | 7 | .globl statfs64 |
Chris Dearman | 5043212 | 2014-02-05 16:59:23 -0800 | [diff] [blame] | 8 | .align 4 |
Elliott Hughes | db1ea34 | 2014-01-17 18:42:49 -0800 | [diff] [blame^] | 9 | .ent statfs64 |
Chris Dearman | 5043212 | 2014-02-05 16:59:23 -0800 | [diff] [blame] | 10 | |
Elliott Hughes | db1ea34 | 2014-01-17 18:42:49 -0800 | [diff] [blame^] | 11 | statfs64: |
Chris Dearman | 5043212 | 2014-02-05 16:59:23 -0800 | [diff] [blame] | 12 | .set push |
| 13 | .set noreorder |
| 14 | li v0, __NR_statfs |
| 15 | syscall |
| 16 | bnez a3, 1f |
| 17 | move a0, v0 |
| 18 | j ra |
| 19 | nop |
| 20 | 1: |
| 21 | move t0, ra |
| 22 | bal 2f |
| 23 | nop |
| 24 | 2: |
| 25 | .cpsetup ra, t1, 2b |
| 26 | LA t9,__set_errno |
| 27 | .cpreturn |
| 28 | j t9 |
| 29 | move ra, t0 |
| 30 | .set pop |
Elliott Hughes | db1ea34 | 2014-01-17 18:42:49 -0800 | [diff] [blame^] | 31 | .end statfs64 |
| 32 | |
| 33 | .globl _C_LABEL(statfs) |
| 34 | .equ _C_LABEL(statfs), _C_LABEL(statfs64) |