Narayan Kamath | 75c55ff | 2014-05-28 18:02:33 +0000 | [diff] [blame] | 1 | /* Generated by gensyscalls.py. Do not edit. */ |
2 | |||||
3 | #include <private/bionic_asm.h> | ||||
4 | |||||
5 | ENTRY(futex) | ||||
6 | stp x29, x30, [sp, #-16]! | ||||
7 | .cfi_def_cfa_offset 16 | ||||
8 | .cfi_rel_offset x29, 0 | ||||
9 | .cfi_rel_offset x30, 8 | ||||
10 | mov x29, sp | ||||
11 | |||||
12 | mov x8, __NR_futex | ||||
13 | svc #0 | ||||
14 | |||||
15 | ldp x29, x30, [sp], #16 | ||||
16 | .cfi_def_cfa_offset 0 | ||||
17 | .cfi_restore x29 | ||||
18 | .cfi_restore x30 | ||||
19 | |||||
20 | cmn x0, #(MAX_ERRNO + 1) | ||||
21 | cneg x0, x0, hi | ||||
22 | b.hi __set_errno | ||||
23 | |||||
24 | ret | ||||
25 | END(futex) |