123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- #define _ERRNO_H 1
- #include <bits/errno.h>
- .text
- .align 4
- .globl pthread_spin_trylock
- .ent pthread_spin_trylock
- pthread_spin_trylock:
- .frame $sp, 0, $26, 0
- .prologue 0
- 0: ldl_l $1, 0($16)
- lda $2, 1
- lda $0, EBUSY
- bne $1, 1f
- stl_c $2, 0($16)
- beq $2, 2f
- mb
- lda $0, 0
- 1: ret
- 2: br 0b
- .end pthread_spin_trylock
|