blob: e578ccc2063065101bd65e25edda4716218d0cee [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
Sreeram Ramachandranceb5bd72014-05-12 11:19:16 -07005ENTRY(__connect)
Serban Constantinescu7f8863d2013-10-10 23:05:06 +01006 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_connect
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
Sreeram Ramachandranceb5bd72014-05-12 11:19:16 -070025END(__connect)
26.hidden __connect