diff options
author | Narayan Kamath <narayan@google.com> | 2014-05-28 18:02:33 +0000 |
---|---|---|
committer | Narayan Kamath <narayan@google.com> | 2014-05-28 18:03:01 +0000 |
commit | 75c55ff84ebfa686c7ae2cc8ee431c6a33bd46b4 (patch) | |
tree | 17a0bb533344ff11f7401dba76d950b71c7bd1b1 /libc/arch-arm64/syscalls | |
parent | ced906c849704f379d7191822f6d74993d4fa296 (diff) | |
download | bionic-75c55ff84ebfa686c7ae2cc8ee431c6a33bd46b4.zip bionic-75c55ff84ebfa686c7ae2cc8ee431c6a33bd46b4.tar.gz bionic-75c55ff84ebfa686c7ae2cc8ee431c6a33bd46b4.tar.bz2 |
Revert "Lose the hand-written futex assembler."
This reverts commit ced906c849704f379d7191822f6d74993d4fa296.
Causes issues on art / dalvik due to a broken return value
check and other undiagnosed issues.
bug: 15195455
Change-Id: I5d6bbb389ecefb0e33a5237421a9d56d32a9317c
Diffstat (limited to 'libc/arch-arm64/syscalls')
-rw-r--r-- | libc/arch-arm64/syscalls/futex.S | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/libc/arch-arm64/syscalls/futex.S b/libc/arch-arm64/syscalls/futex.S new file mode 100644 index 0000000..c14ebbf --- /dev/null +++ b/libc/arch-arm64/syscalls/futex.S @@ -0,0 +1,25 @@ +/* Generated by gensyscalls.py. Do not edit. */ + +#include <private/bionic_asm.h> + +ENTRY(futex) + stp x29, x30, [sp, #-16]! + .cfi_def_cfa_offset 16 + .cfi_rel_offset x29, 0 + .cfi_rel_offset x30, 8 + mov x29, sp + + mov x8, __NR_futex + svc #0 + + ldp x29, x30, [sp], #16 + .cfi_def_cfa_offset 0 + .cfi_restore x29 + .cfi_restore x30 + + cmn x0, #(MAX_ERRNO + 1) + cneg x0, x0, hi + b.hi __set_errno + + ret +END(futex) |