blob: 4cf4de3e794913fd35d529c6f96fb5c3da4c84e7 [file] [log] [blame]
Serban Constantinescu7f8863d2013-10-10 23:05:06 +01001/* Generated by gensyscalls.py. Do not edit. */
2
Elliott Hughesed744842013-11-07 10:31:05 -08003#include <private/bionic_asm.h>
Serban Constantinescu7f8863d2013-10-10 23:05:06 +01004
5ENTRY(fdatasync)
6 stp x29, x30, [sp, #-16]!
Christopher Ferrisdf22a122014-05-21 16:00:13 -07007 .cfi_def_cfa_offset 16
8 .cfi_rel_offset x29, 0
9 .cfi_rel_offset x30, 8
Serban Constantinescu7f8863d2013-10-10 23:05:06 +010010 mov x29, sp
Serban Constantinescu7f8863d2013-10-10 23:05:06 +010011
12 mov x8, __NR_fdatasync
13 svc #0
14
Serban Constantinescu7f8863d2013-10-10 23:05:06 +010015 ldp x29, x30, [sp], #16
Christopher Ferrisdf22a122014-05-21 16:00:13 -070016 .cfi_def_cfa_offset 0
17 .cfi_restore x29
18 .cfi_restore x30
Serban Constantinescu7f8863d2013-10-10 23:05:06 +010019
20 cmn x0, #(MAX_ERRNO + 1)
21 cneg x0, x0, hi
22 b.hi __set_errno
23
24 ret
25END(fdatasync)