summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/ppc/__testandset.S
blob: 1469823370537cbfff23245d1e5607eaecb264f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
.global __testandset
.type __testandset,@function
.align 2
__testandset:
1:	lwarx	5,0,3
	li	0,1
	stwcx.	0,0,3
	bne-	1b
	mr	3,5
	blr
.size __testandset,.-__testandset