123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- .text
- ENTRY (pthread_spin_lock)
- memw
- 1: l32ex a3, a2
- bnez a3, 1b
- movi a3, 1
- s32ex a3, a2
- getex a3
- beqz a3, 1b
- memw
- movi a3, 0
- wsr a3, scompare1
- movi a3, 1
- 1: s32c1i a3, a2, 0
- bnez a3, 1b
- movi a2, 0
- abi_ret
- END (pthread_spin_lock)
|