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