summaryrefslogtreecommitdiffstats
path: root/libc/arch-arm64/bionic/futex_arm64.S
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-05-21 18:27:40 -0700
committerElliott Hughes <enh@google.com>2014-05-21 18:30:00 -0700
commitd5ed63a6a8290de88802172ce178656fbafe70c6 (patch)
tree97bb7a00c975041f6e297fe7ff53a8b116f405bf /libc/arch-arm64/bionic/futex_arm64.S
parentf97d8713a265f44279819ba6b245dd81aada34da (diff)
downloadbionic-d5ed63a6a8290de88802172ce178656fbafe70c6.zip
bionic-d5ed63a6a8290de88802172ce178656fbafe70c6.tar.gz
bionic-d5ed63a6a8290de88802172ce178656fbafe70c6.tar.bz2
Hide most of the private futex functions.
Also hide part of the system properties compatibility code, since we needed to touch that to keep it building. I'll remove __futex_syscall4 and futex in a later patch. Bug: 11156955 Change-Id: Ibbf42414c5bb07fb9f1c4a169922844778e4eeae
Diffstat (limited to 'libc/arch-arm64/bionic/futex_arm64.S')
-rw-r--r--libc/arch-arm64/bionic/futex_arm64.S53
1 files changed, 1 insertions, 52 deletions
diff --git a/libc/arch-arm64/bionic/futex_arm64.S b/libc/arch-arm64/bionic/futex_arm64.S
index 00d24a4..9d7465a 100644
--- a/libc/arch-arm64/bionic/futex_arm64.S
+++ b/libc/arch-arm64/bionic/futex_arm64.S
@@ -28,11 +28,8 @@
#include <private/bionic_asm.h>
-#define FUTEX_WAIT 0
-#define FUTEX_WAKE 1
-
// int __futex_syscall4(volatile void* ftx, int op, int val, const struct timespec* timeout)
-ENTRY(__futex_syscall4)
+ENTRY_PRIVATE(__futex_syscall4)
stp x29, x30, [sp, #-16]!
.cfi_def_cfa_offset 16
.cfi_rel_offset x29, 0
@@ -48,51 +45,3 @@ ENTRY(__futex_syscall4)
.cfi_restore x30
ret
END(__futex_syscall4)
-
-// int __futex_syscall3(volatile void* ftx, int op, int count)
-ENTRY(__futex_syscall3)
- b __futex_syscall4
-END(__futex_syscall3)
-
-// int __futex_wait(volatile void* ftx, int val, const struct timespec* timeout)
-ENTRY_PRIVATE(__futex_wait)
- stp x29, x30, [sp, #-16]!
- .cfi_def_cfa_offset 16
- .cfi_rel_offset x29, 0
- .cfi_rel_offset x30, 8
- mov x29, sp
-
- mov x3, x2
- mov x2, x1
- mov x1, #FUTEX_WAIT
-
- mov x8, __NR_futex
- svc #0
-
- ldp x29, x30, [sp], #16
- .cfi_def_cfa_offset 0
- .cfi_restore x29
- .cfi_restore x30
- ret
-END(__futex_wait)
-
-// int __futex_wake(volatile void* ftx, int count)
-ENTRY_PRIVATE(__futex_wake)
- stp x29, x30, [sp, #-16]!
- .cfi_def_cfa_offset 16
- .cfi_rel_offset x29, 0
- .cfi_rel_offset x30, 8
- mov x29, sp
-
- mov x2, x1
- mov x1, #FUTEX_WAKE
-
- mov x8, __NR_futex
- svc #0
-
- ldp x29, x30, [sp], #16
- .cfi_def_cfa_offset 0
- .cfi_restore x29
- .cfi_restore x30
- ret
-END(__futex_wake)