Serban Constantinescu | 7f8863d | 2013-10-10 23:05:06 +0100 | [diff] [blame] | 1 | /* Generated by gensyscalls.py. Do not edit. */ |
| 2 | |
| 3 | #include <asm/unistd.h> |
| 4 | #include <linux/err.h> |
| 5 | #include <machine/asm.h> |
| 6 | |
| 7 | ENTRY(pwrite64) |
| 8 | stp x29, x30, [sp, #-16]! |
| 9 | mov x29, sp |
| 10 | str x8, [sp, #-16]! |
| 11 | |
| 12 | mov x8, __NR_pwrite64 |
| 13 | svc #0 |
| 14 | |
| 15 | ldr x8, [sp], #16 |
| 16 | ldp x29, x30, [sp], #16 |
| 17 | |
| 18 | cmn x0, #(MAX_ERRNO + 1) |
| 19 | cneg x0, x0, hi |
| 20 | b.hi __set_errno |
| 21 | |
| 22 | ret |
| 23 | END(pwrite64) |
Elliott Hughes | 8fbf8de | 2013-11-06 13:10:37 -0800 | [diff] [blame^] | 24 | |
| 25 | .globl _C_LABEL(pwrite) |
| 26 | .equ _C_LABEL(pwrite), _C_LABEL(pwrite64) |