12345678910111213141516171819202122232425262728293031323334 |
- #define _ERRNO_H 1
- #include <bits/errno.h>
- #include <sysdep.h>
- .text
- .align 4
- ENTRY (pthread_spin_trylock)
- mov r1, #1
- swp r2, r1, [r0]
- teq r2, #0
- moveq r0, #0
- movne r0, #EBUSY
- PSEUDO_RET_NOERRNO
- END (pthread_spin_trylock)
|