summaryrefslogtreecommitdiffstats
path: root/libexec/rtld-elf/alpha/rtld_start.S
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/rtld-elf/alpha/rtld_start.S')
-rw-r--r--libexec/rtld-elf/alpha/rtld_start.S49
1 files changed, 0 insertions, 49 deletions
diff --git a/libexec/rtld-elf/alpha/rtld_start.S b/libexec/rtld-elf/alpha/rtld_start.S
index d21c088..8ab7605 100644
--- a/libexec/rtld-elf/alpha/rtld_start.S
+++ b/libexec/rtld-elf/alpha/rtld_start.S
@@ -209,52 +209,3 @@ NESTED_NOPROFILE(_rtld_bind_start_old, 0, 168, ra, 0, 0)
END(_rtld_bind_start_old)
-/*
- * int cmp0_and_store_int(volatile int *p, int newval);
- *
- * If an int holds 0, store newval into it; else do nothing. Returns
- * the previous value.
- */
-LEAF(cmp0_and_store_int, 2)
-1: mov a1, t0
- ldl_l v0, 0(a0)
- bne v0, 3f
- stl_c t0, 0(a0)
- beq t0, 2f
- mb
- RET
-2: br 1b
-3: RET
-END(cmp0_and_store_int)
-
-LEAF(atomic_add_int, 2)
-0: ldl_l t0, 0(a0)
- addq t0, a1, t0
- stl_c t0, 0(a0)
- beq t0, 1f
- mb
- RET
-1: br 0b
-END(atomic_add_int)
-
-/* Atomically increment an int. */
-LEAF(atomic_incr_int, 1)
-0: ldl_l t0, 0(a0)
- addq t0, 1, t0
- stl_c t0, 0(a0)
- beq t0, 1f
- mb
- RET
-1: br 0b
-END(atomic_incr_int)
-
-/* Atomically decrement an int. */
-LEAF(atomic_decr_int, 1)
-0: ldl_l t0, 0(a0)
- subq t0, 1, t0
- stl_c t0, 0(a0)
- beq t0, 1f
- mb
- RET
-1: br 0b
-END(atomic_decr_int)
OpenPOWER on IntegriCloud