12345678910111213141516171819202122232425262728293031 |
- #include <pthread-errnos.h>
- .globl pthread_spin_trylock
- .type pthread_spin_trylock,
- .align 5
- pthread_spin_trylock:
- tas.b
- bf/s 1f
- mov #EBUSY, r0
- mov #0, r0
- 1:
- rts
- nop
- .size pthread_spin_trylock,.-pthread_spin_trylock
|